예제 #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();
        }