public static void AddPlayer(GameObject playerGo, LobbyPlayer lobbyPlayer, LobbyPlayerParam param) { UIDebug.Log("AddPlayer Slot:{0} isLocalPlayer:{1} RoleName:{2} Instance:{3}", param.Slot, param.isLocalPlayer, param.RoleName, Instance); PLAYER_LIST.Add(new PlayerManager(playerGo, param.Slot, param.RoleName, param.RoleColor)); }
void Awake() { mParam = GetComponent<LobbyPlayerParam>(); mReadyButtonTxt = m_ReadyButton.GetComponentInChildren<Text>(); mColorButtonTxt = m_ColorButton.GetComponentInChildren<Text>(); mBackgroundImg = GetComponent<Image>(); }