예제 #1
0
    /// <summary>
    /// 创建实例
    /// </summary>
    public static FuncApplyMatchRequest create(int funcID)
    {
        FuncApplyMatchRequest re = (FuncApplyMatchRequest)BytesControl.createRequest(dataID);

        re.funcID = funcID;
        return(re);
    }
예제 #2
0
파일: HMainUI.cs 프로젝트: ethan0w/tank
    protected override void init()
    {
        base.init();

        _model.Button_start.click = () =>
        {
            if (me.scene.isMatching())
            {
                FuncApplyCancelMatchRequest.create(GFunctionType.Melee).send();
            }
            else
            {
                FuncApplyMatchRequest.create(GFunctionType.Melee).send();
            }
        };

        registPlayerEventListener(GameEventType.StartMatch, onMatchChange);
        registPlayerEventListener(GameEventType.CancelMatch, onMatchChange);
    }