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