def setInvasionStarted(self, started):
    if (started and (not self.invasionOn)):
        self.sky.reparentTo(camera)
        self.beginSkySequence.start()
        base.playMusic(self.musicEnter, looping=1, volume=1.0)
    elif ((not started) and self.invasionOn):
        self.endInvasion()
    else:
        return
    self.invasionOn = started
def setInvasionStarted(self, started):
    if (started and (not self.invasionOn)):
        self.sky.reparentTo(camera)
        self.beginSkySequence.start()
        base.playMusic(self.musicEnter, looping=1, volume=1.0)
    elif ((not started) and self.invasionOn):
        self.endInvasion()
    else:
        return
    self.invasionOn = started