//adapta o tamanho da camera na scene // private float orthosize = 5; // private float aspect = 1.0f; void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(gameObject); } SceneManager.sceneLoaded += VerificaLevel; }
void Awake() { if (instance == null) { instance = this; //DontDestroyOnLoad(this.gameObject); } else if (instance != this) { Destroy(gameObject); } SceneManager.sceneLoaded += VerificaFase; }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(gameObject); } SceneManager.sceneLoaded += VerificaFase; bolaEmUso = PlayerPrefs.GetInt("BolaUse"); }