void ForbidsNewPalyerBtn() { ForbidsNewPalyer = !ForbidsNewPalyer; mForbidsNewPalyerBg.SetActive(ForbidsNewPalyer); ServerAdministrator.SetJoinGame(ForbidsNewPalyer); if (ForbidsNewPalyer) { Debug.Log("ForbidsNewPalyer!!"); } else { Debug.Log("AllowNewPalyer!!"); } Reflsh(UIAdminstratorctr.mUIPersonelInfoList); }
void RPC_S2C_JoinGame(uLink.BitStream stream, uLink.NetworkMessageInfo info) { bool allowJoin = stream.Read <bool>(); ServerAdministrator.SetJoinGame(allowJoin); }