protected override void OnAnimDone()
 {
     if (!SnackbarManager.OnSnackbarCompleted())
     {
         Destroy(gameObject);
     }
 }
Пример #2
0
 protected override void OnAnimDone()
 {
     if (!SnackbarManager.Remove())
     {
         Destroy(gameObject);
     }
 }
Пример #3
0
        /// <summary>
        /// See MonoBehaviour.Awake.
        /// </summary>
        void Awake()
        {
            if (!m_Instance)
            {
                m_Instance = this;

                if (m_KeepBetweenScenes)
                {
                    DontDestroyOnLoad(this);
                }
            }
            else
            {
                Destroy(gameObject);
            }
        }
Пример #4
0
        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);
            }
        }
Пример #5
0
        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);
            }
        }
Пример #6
0
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
Пример #7
0
 void OnDestroy()
 {
     m_Instance = null;
 }
Пример #8
0
 void OnApplicationQuit()
 {
     m_Instance = null;
 }
Пример #9
0
 void OnDestroy()
 {
     m_Instance = null;
 }