Пример #1
0
 public static void UpdateGround()
 {
     if (GameController.CurrentState == GameController.LevelState.First)
     {
         instance.GenerateFirstPlayground(false);
     }
     else if (GameController.CurrentState == GameController.LevelState.Second)
     {
         instance.GenerateSecondPlayground(false);
     }
     else
     {
         instance.GenerateFirstPlayground(false);
         instance.needRecalculateNormals = true;
         instance.GenerateSecondPlayground(false);
     }
 }