void RefreshReadyBtn() { var data = MgobeHelper.GetPlayerById(MgobeHelper.PlayerId); if (data != null) { m_BtnReady.GetComponentInChildren <Text>().text = data.CustomPlayerStatus == 0 ? "准备" : "取消准备"; } }
void OnClickLeave() { var data = MgobeHelper.GetPlayerById(MgobeHelper.PlayerId); if (data.CustomPlayerStatus == 1) { return; } MgobeHelper.LeaveRoom(OnLeaveRoom); }