protected virtual void OnAnimDone()
 {
     if (!ToastManager.OnToastCompleted())
     {
         Destroy(gameObject);
     }
 }
Example #2
0
 protected virtual void OnAnimDone()
 {
     if (!ToastManager.Remove())
     {
         Destroy(gameObject);
     }
 }
Example #3
0
        protected virtual void OnAnimDone()
        {
            m_CanvasGroup.alpha = 0.0f;

            if (!ToastManager.OnToastCompleted())
            {
                Destroy(gameObject);
            }
        }
Example #4
0
        /// <summary>
        /// See MonoBehaviour.Awake.
        /// </summary>
        void Awake()
        {
            if (!m_Instance)
            {
                m_Instance = this;

                if (m_KeepBetweenScenes)
                {
                    DontDestroyOnLoad(this);
                }
            }
            else
            {
                Destroy(gameObject);
                return;
            }

            InitSystem();
        }
Example #5
0
        /// <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();
        }
Example #6
0
        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();
        }
Example #7
0
 /// <summary>
 /// See MonoBehaviour.OnApplicationQuit.
 /// </summary>
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
Example #8
0
 /// <summary>
 /// See MonoBehaviour.OnDestroy.
 /// </summary>
 void OnDestroy()
 {
     m_Instance = null;
 }
Example #9
0
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
Example #10
0
 void OnDestroy()
 {
     m_Instance = null;
 }