Beispiel #1
0
    public void Start()
    {
        m_ingameManager = GetComponent <PlayerIngameManager>();
        m_lobbyManager  = GetComponent <PlayerLobbyManager>();
        InitTeam();

        s_allPlayerManagers.Add(this);
    }
Beispiel #2
0
    public void RpcSetOwner(int id)
    {
        List <PlayerManager> allPlayerManagers = PlayerManager.AllPlayerManagers();

        foreach (PlayerManager playerManager in allPlayerManagers)
        {
            if (playerManager.IngameManager().Id() == id)
            {
                m_ingameManager = playerManager.IngameManager();
                m_ingameManager.SetCharacter(this);
            }
        }
    }