Пример #1
0
 private void Start()
 {
     if (startSettings != null && startSettings.NeedLoading())
     {
         LoadGame(startSettings.GetSavenameFullpath());
     }
     else
     {
         PrepareSession();
     }
 }
Пример #2
0
 // SCENERY CHANGING
 public static void StartNewGame(GameStartSettings gss)
 {
     if (realMaster == null)
     {
         _applyingGameStartSettings = gss;
         ChangeScene(PLAY_SCENE_INDEX);
     }
     else
     {
         if (gss.NeedLoading())
         {
             realMaster.gameMode = gss.DefineGameMode();
             realMaster.LoadGame(gss.GetSavenameFullpath());
         }
         else
         {
             realMaster.ClearPreviousSessionData();
             _applyingGameStartSettings = gss;
             realMaster.Awake();
             realMaster.PrepareSession();
         }
     }
 }