private WaitForSeconds m_StartWait; // Used to have a delay whilst the round starts. #endregion Fields #region Methods // int playerNum, Color c, string name, int localID); /// <summary> /// Add a player from the lobby hook /// </summary> /// <param name="player">The actual GameObject instantiated by the lobby, which is a NetworkBehaviour</param> /// <param name="lobbyPlayer">The Lobby Player</param> /// lp.slot, lp.playerColor, lp.nameInput.text, lp.playerControllerId public static void AddPlayer(GameObject player, LobbyPlayer lobbyPlayer) { PlayMakerSanPlayerManager tmp = new PlayMakerSanPlayerManager(); tmp.m_Instance = player; tmp.m_PlayerNumber = lobbyPlayer.playerControllerId; tmp.m_PlayerColor = lobbyPlayer.playerColor; tmp.m_PlayerName = lobbyPlayer.nameInput.name; tmp.m_LocalPlayerID = lobbyPlayer.playerControllerId; tmp.Setup(); m_Players.Add(tmp); }