protected virtual void OnAnimDone() { if (!ToastManager.OnToastCompleted()) { Destroy(gameObject); } }
protected virtual void OnAnimDone() { if (!ToastManager.Remove()) { Destroy(gameObject); } }
protected virtual void OnAnimDone() { m_CanvasGroup.alpha = 0.0f; if (!ToastManager.OnToastCompleted()) { Destroy(gameObject); } }
/// <summary> /// See MonoBehaviour.Awake. /// </summary> void Awake() { if (!m_Instance) { m_Instance = this; if (m_KeepBetweenScenes) { DontDestroyOnLoad(this); } } else { Destroy(gameObject); return; } InitSystem(); }
/// <summary> /// See MonoBehaviour.Awake. /// </summary> void Awake() { if (!m_Instance) { m_Instance = this; if (m_KeepBetweenScenes) { DontDestroyOnLoad(this); } } else { Debug.LogWarning("More than one ToastManager exist in the scene, destroying one."); Destroy(gameObject); return; } InitSystem(); }
void Awake() { if (!m_Instance) { m_Instance = this; if (m_KeepBetweenScenes) { DontDestroyOnLoad(this); } } else { Debug.LogWarning("More than one ToastManager exist in the scene, destroying one."); Destroy(gameObject); return; } InitSystem(); }
/// <summary> /// See MonoBehaviour.OnApplicationQuit. /// </summary> void OnApplicationQuit() { m_Instance = null; }
/// <summary> /// See MonoBehaviour.OnDestroy. /// </summary> void OnDestroy() { m_Instance = null; }
void OnApplicationQuit() { m_Instance = null; }
void OnDestroy() { m_Instance = null; }