//召唤神龙消息返回 public void CallDragonRequestCompleted(DragonManager.DragonType dragonType, CallDragonResponse callDragonResponse) { Dragon dragon = Core.Data.dragonManager.DragonList[(int)dragonType]; dragon.RTData.st = Core.TimerEng.curTime; dragon.RTData.dur = callDragonResponse.data.du; dragon.RTData.ep = callDragonResponse.data.ep; dragon.RTData.lv = callDragonResponse.data.lv; if (UIShenLongManager.instance != null && dragon.RTData.dur > 0) { UIShenLongManager.Instance.gameObject.GetComponent <UIShenlongBallAnim> ().setTimeBoxEffect = true; UIShenLongManager.Instance.gameObject.GetComponent <UIShenlongBallAnim> ().ShowTimeEffect(); } showCallDragonTime(); if (dragonType == DragonManager.DragonType.EarthDragon) { Core.Data.dragonManager.callEarthDragonTimeCompletedDelegate = CallDragonTimeCompleted; } else { Core.Data.dragonManager.callNMKXDragonTimeCompletedDelegate = CallDragonTimeCompleted; } Core.Data.dragonManager.startCallDragonTimer(dragonType, Core.TimerEng.curTime, Core.TimerEng.curTime + callDragonResponse.data.du); }
public void CallDragonCompleted(BaseHttpRequest request, BaseResponse response) { if (response != null && response.status != BaseResponse.ERROR) { CallDragonResponse callDragonResponse = response as CallDragonResponse; if (CallDragonCompletedDelegate != null) { int callDragonType = ((request as HttpRequest).ParamMem as CallDragonParam).slty - 1; CallDragonCompletedDelegate((DragonType)callDragonType, callDragonResponse); } } else if (response != null) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getNetworkErrorString(response.errorCode)); Core.Data.dragonManager.learnAoYiCompletedDelegate = null; } ComLoading.Close(); }