public void OnApplicationStart() { if (_init) { return; } _init = true; instance = this; PauseManager.OnLoad(); }
public void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(this); } }