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;
 }