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

            if (!ToastManager.OnToastCompleted())
            {
                Destroy(gameObject);
            }
        }
示例#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();
        }
示例#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();
        }
示例#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();
        }
示例#7
0
 /// <summary>
 /// See MonoBehaviour.OnApplicationQuit.
 /// </summary>
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
示例#8
0
 /// <summary>
 /// See MonoBehaviour.OnDestroy.
 /// </summary>
 void OnDestroy()
 {
     m_Instance = null;
 }
示例#9
0
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
示例#10
0
 void OnDestroy()
 {
     m_Instance = null;
 }