コード例 #1
0
        private void Check()
        {
            if (m_GameSettings == null)
            {
                throw new ArgumentNullException(nameof(m_GameSettings));
            }

            if (m_Player == null)
            {
                throw new ArgumentNullException(nameof(m_Player));
            }

            if (m_EnemyContainer == null)
            {
                throw new ArgumentNullException(nameof(m_EnemyContainer));
            }

            if (m_RespawnPoint == null)
            {
                throw new ArgumentNullException(nameof(m_RespawnPoint));
            }

            if (m_GameViews == null)
            {
                throw new ArgumentNullException(nameof(m_GameViews));
            }

            m_Respawn = m_RespawnPoint.GetComponent <IRespawn>();
            if (m_Respawn == null)
            {
                throw new ArgumentNullException(nameof(m_Respawn));
            }

            m_GameSettings.Check();
        }
コード例 #2
0
 public static void removeListener(IRespawn list)
 {
     listener.Remove(list);
 }
コード例 #3
0
 public static void addListener(IRespawn list)
 {
     listener.Add(list);
 }