protected override void OnAnimDone() { if (!SnackbarManager.OnSnackbarCompleted()) { Destroy(gameObject); } }
protected override void OnAnimDone() { if (!SnackbarManager.Remove()) { Destroy(gameObject); } }
/// <summary> /// See MonoBehaviour.Awake. /// </summary> void Awake() { if (!m_Instance) { m_Instance = this; if (m_KeepBetweenScenes) { DontDestroyOnLoad(this); } } else { Destroy(gameObject); } }
void Awake() { if (!m_Instance) { m_Instance = this; if (m_KeepBetweenScenes) { DontDestroyOnLoad(this); } } else { Debug.LogWarning("More than one SnackbarManager exist in the scene, destroying one."); Destroy(gameObject); } }
void OnApplicationQuit() { m_Instance = null; }
void OnDestroy() { m_Instance = null; }