Пример #1
0
    void MessageReceive(SocketModel model)
    {
        //Debug.Log("ff");
        switch (model.type)
        {
        case TypeProtocol.TYPE_GAMEHALL_CREQ:
            gameHallHandler.MessageReceive(model);
            break;

        case TypeProtocol.TYPE_LOGIN_CREQ:
            loginHandler.MessageReceive(model);
            break;

        case TypeProtocol.TYPE_DUEL_CREQ:
            eventSys.SendEvent(DuelEvent.netEvent_ReciveDuelMes, model);
            break;

        default:
            Debug.Log("error");
            break;
        }
    }
Пример #2
0
 private void ClickExitButton()
 {
     eventSys.SendEvent(DuelEvent.gameEvent_ExitPlayBack);
 }