Пример #1
0
 public void SoftResetWorlds()
 {
     if (State is WorldState && Lives > 0)
     {
         Time   = Utils.Instance.InitialTimeLeft;
         Player = new Player();
         if (InPrimaryWorld)
         {
             PrimaryWorld.WorldFrozen      = false;
             Player.MovementState.Location = PrimaryWorld.PlayerSpawn;
         }
         else
         {
             HiddenWorld.WorldFrozen       = false;
             Player.MovementState.Location = HiddenWorld.PlayerSpawn;
         }
         State = new IntroState(this);
     }
     else
     {
         State = new GameOverState(this);
     }
 }
Пример #2
0
 public void RecreateWorld()
 {
     State = new IntroState(this);
 }
Пример #3
0
 public void CreateNextWorld()
 {
     worldID++;
     State = new IntroState(this);
 }