public override void OnStart() { base.OnStart(); InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining; fport.access(onReceiveInit); }
/// <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); } }
private void initData() { InitCardTraining fport = FPortManager.Instance.getFPort("InitCardTraining") as InitCardTraining; fport.access(onReceiveInit); }