Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (cheatsEnabled)
     {
         if (Input.GetKeyDown("m"))
         {
             PlayerStats.instance.AddCash(tmpChash);
             print("CashCame" + tmpChash);
         }
         if (Input.GetKeyDown("k"))
         {
             RocketMovement.instance.AddFuel(15);
         }
     }
     if (Input.GetKeyDown("o"))
     {
         HelpSaveLoad.DeleteAllExeptSystem();
         print("DeleteAllExeptSystem");
     }
 }
Beispiel #2
0
 private void LoadLevelSync(int levelIndex)
 {
     HelpSaveLoad.DeleteAllExeptSystem();
     MenuButtonControl.instance.SetLoadingScreenActive();
     StartCoroutine(LoadLevelAsync(levelIndex));
 }