Manages scoring for each player in the game.
Inheritance: UnityEngine.MonoBehaviour
        public void Awake()
        {
            // Ensure prefabs are set correctly
            if (navyPlayer      == null ||
                piratesPlayer   == null ||
                tinkerersPlayer == null ||
                vikingsPlayer   == null)
            {
                Debug.LogError("Prefabs not set for player spawner!");
                return;
            }

            // Get reference to score manager
            m_scoreManager = FindObjectOfType<ScoreManager>();
            if (m_scoreManager == null)
            {
                Debug.LogError("Unable to find Score Manager within scene!");
            }

            // Ensure player number is set correctly
            if (playerNumber < 1 ||
                playerNumber > 4)
            {
                Debug.LogWarning(string.Format("Invalid player number for player spawner {0}", name));
            }
        }
        public void Awake()
        {
            // Ensure prefabs are set
            if (navyBase        == null ||
                piratesBase     == null ||
                tinkerersBase   == null ||
                vikingsBase     == null)
            {
                Debug.LogError("Prefabs not correctly set!");
            }

            // Get reference to score manager within the scene
            m_scoreManager = FindObjectOfType<ScoreManager>();
            if (m_scoreManager == null)
            {
                Debug.LogError("Unable to find the Score manager within the scene!");
            }

            // Ensure player number is set correctly, if Free for All
            if ((playerNumber < 1 || playerNumber > 4) &&
                LevelSettings.Instance.gamemode == Gamemode.FFA)
            {
                Debug.LogWarning(string.Format("Invalid player number for player spawner {0}", name));
            }
        }
        public void Awake()
        {
            // Get reference to master camera
            m_masterCamera = FindObjectOfType<MasterCamera>();
            if (m_masterCamera == null)
            {
                Debug.LogError("Unable to find Master Camera within scene!");
            }

            // Get reference to Level Bounds
            m_levelBounds = FindObjectOfType<LevelBoundsBehaviour>();
            if (m_levelBounds == null)
            {
                Debug.LogError("Unable to find level bounds within scene!");
            }

            // Get reference to Score Manager
            m_scoreManager = FindObjectOfType<ScoreManager>();
            if (m_scoreManager == null)
            {
                Debug.LogError("Unable to find ScoreManager within scene!");
            }

            // Get all players spawners
            m_playerSpawners = FindObjectsOfType<PlayerSpawner>();
            if (m_playerSpawners == null ||
                m_playerSpawners.Length == 0)
            {
                Debug.LogWarning("No player spawners within scene, or spawn manager is unable to find them");
            }

            // Get all base spawners
            m_baseSpawners = FindObjectsOfType<BaseSpawner>();
            if (m_baseSpawners == null ||
                m_baseSpawners.Length == 0)
            {
                Debug.LogWarning("No base spawners within scene, or spawn manager is unable to find them");
            }
        }