public void GetReady() { this.Log("OnClickReady()"); if (pvpRoom != null) { if (pvpRoom.IsReady) { pvpRoom.CancelReady(); } else { pvpRoom.GetReady(); } } }
public void OnBtnRoomReady() { if (UIUtils.GetButtonText(btnRoomReady) == "开始准备") { m_room.RoomReady(); } else { m_room.CancelReady(); } }
/// <summary> /// 停止游戏 /// </summary> private void StopGame() { if (m_game != null) { m_game.Stop(); m_game = null; } if (m_room != null) { m_room.CancelReady(); } ModuleManager.Instance.SendMessage(ModuleDef.HostModule, "ReStart"); }