Exemplo n.º 1
0
    public override void OnStart()
    {
        base.OnStart();
        InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining;

        fport.access(onReceiveInit);
    }
Exemplo n.º 2
0
    /// <summary>
    /// 断线重连
    /// </summary>
    public override void OnNetResume()
    {
        base.OnNetResume();
        CardTrainingTimeWindow win = UiManager.Instance.getWindow <CardTrainingTimeWindow>();

        if (win != null)
        {
            InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining;
            fport.access(win.onReceiveInit);
        }
        else
        {
            InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining;
            fport.access(onReceive);
        }
    }
Exemplo n.º 3
0
    private void initData()
    {
        InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining;

        fport.access(onReceiveInit);
    }