void CloseRoom() { if (pvpRoom != null) { if (pvpRoom.IsInRoom) { pvpRoom.ExitRoom(); } pvpRoom.Destroy(); pvpRoom = null; } //返回上一个UI UIManager.Instance.PopUI(); }
private void OnCloseServer(object arg) { m_room.ExitRoom(); }