private void Awake() { if (!_instance) { _instance = this; } }
// Start is called before the first frame update void Start() { if (_instance == null) { _instance = this; } DontDestroyOnLoad(this); _total_scene = SceneManager.sceneCountInBuildSettings; }
void GetThatLevel(int n) { MiniSceneManager.Instance().NextLevel(levels[n]); //Debug.Log("you got; " + n); }