Exemple #1
0
 public void Awake()
 {
     if (SaveControl.GetString("CheckPoint") == Key)
     {
         MainCharacterControl.Main.SetPosition(ResetPoint.transform.position);
     }
 }
Exemple #2
0
 private void Awake()
 {
     if (SaveControl.GetString("Level") == Key)
     {
         Main = this;
         Base.SetActive(true);
     }
 }
Exemple #3
0
 public void Awake()
 {
     if (Main && Main != this)
     {
         Destroy(gameObject);
         return;
     }
     Main = this;
     DontDestroyOnLoad(gameObject);
 }
Exemple #4
0
 public void NextLevel()
 {
     if (AlreadyLoading)
     {
         return;
     }
     AlreadyLoading = true;
     if (Level.Main.NextLevelKey != "")
     {
         SaveControl.SetString("Level", Level.Main.NextLevelKey);
     }
     StartCoroutine("LoadScene");
 }
Exemple #5
0
 public void SetActive()
 {
     SaveControl.SetString("CheckPoint", Key);
 }