예제 #1
0
    void CloseRoom()
    {
        if (pvpRoom != null)
        {
            if (pvpRoom.IsInRoom)
            {
                pvpRoom.ExitRoom();
            }

            pvpRoom.Destroy();
            pvpRoom = null;
        }

        //返回上一个UI
        UIManager.Instance.PopUI();
    }
예제 #2
0
 private void OnCloseServer(object arg)
 {
     m_room.ExitRoom();
 }