Example #1
0
    public void TellCameraBeginSpectatorMode()
    {
        //Stop typical cam behaviour
        m_isInSpectatorMode = true;

        //Init player array
        //instead of trying to find them in the scene, get them from GSC, then they are ordered
        m_gameController.RemovePlayerFromConnectedList(Network.player);
        List <Player> players = m_gameController.m_connectedPlayers;

        m_players = new GameObject[players.Count];
        for (int i = 0; i < players.Count; i++)
        {
            m_players[i] = m_gameController.GetPlayerFromNetworkPlayer(m_gameController.GetNetworkPlayerFromID(i));
        }

        //Alert gui we're in specmode
        m_gui.BeginSpecModeGameTimer();

        m_shouldParallax = true;

        //Jump to CShip
        //TODO: Parametise this into finding either cship or cshipstartpos
        this.transform.position = new Vector3(-70, 50, -10);
    }