/// <summary> /// Raises the destroy event. /// </summary> private void OnDestroy() { _instance = null; }
/// <summary> /// Awake this instance. /// </summary> private void Awake() { DontDestroyOnLoad(this); _instance = this; }
/// <summary> /// Raises the destroy event. /// </summary> private void OnDestroy() { _instance = null; }
/// <summary> /// Awake this instance. /// </summary> private void Awake() { DontDestroyOnLoad(this); _instance = this; }