Esempio n. 1
0
    void RoomJoinFAIL(MsgGlobal msg)
    {
        ArgsJoinRoomReason args = new ArgsJoinRoomReason();

        args.reason = EJoinRoomFailReason.ERSYM;
        NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.EJoinRoomFail, args);
    }
Esempio n. 2
0
    void UpdateJoinRoomFail(LocalNotification e)
    {
        ArgsJoinRoomReason msg = e.param as ArgsJoinRoomReason;

        if (msg != null)
        {
            switch (msg.reason)
            {
            case EJoinRoomFailReason.EFKBZ:
                UIManagers.Instance.EnqueueTip("房卡不足");
                break;

            case EJoinRoomFailReason.EROOM_NULL:
                UIManagers.Instance.EnqueueTip("房间号不存在");
                break;

            case EJoinRoomFailReason.ERSYM:
                UIManagers.Instance.EnqueueTip("人数已满");
                break;
            }
        }
        curNumbers.Remove(curNumbers.Length - 1, 1);
        isNewLoad = false;
        numberContainer.transform.GetChild(curNumbers.Length).GetChild(0).GetComponent <Image>().enabled = false;
        Debug.Log(RoomInfo.Instance.mRoomCode);
    }
Esempio n. 3
0
    void RoomJoinFull(MsgGlobal msg)
    {
        Debug.Log("房间不存在");
        ArgsJoinRoomReason args = new ArgsJoinRoomReason();

        args.reason = EJoinRoomFailReason.EROOM_NULL;
        NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.EJoinRoomFail, args);
    }