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