//更新妖气值 CommandCallbackType UpdateYaoqiHandle(byte[] dataBuffer, int socketID) { SMSGEctypeYaoqiProp_SC sMSGEctypeYaoqiProp_SC = SMSGEctypeYaoqiProp_SC.ParsePackage(dataBuffer); UIEventManager.Instance.TriggerUIEvent(UIEventType.UpdateYaoqiValue, sMSGEctypeYaoqiProp_SC); return(CommandCallbackType.Continue); }
/// <summary> /// 更新妖气值 /// </summary> /// <param name="yaoqiProp"></param> public void UpdateYaoqiProp(SMSGEctypeYaoqiProp_SC yaoqiProp) { // if (this.sMSGEctypeSelect_SC.sYaoqiProp == null) // { // return; // } // int propLength = this.sMSGEctypeSelect_SC.sYaoqiProp.Length; // uint lastProp = 0; // for (int i = 0; i < propLength; i++) // { // if (this.sMSGEctypeSelect_SC.sYaoqiProp[i].dwEctypeSection == yaoqiProp.dwEctypeSection) // { // lastProp = this.sMSGEctypeSelect_SC.sYaoqiProp[i].dwYaoqiValue; // this.sMSGEctypeSelect_SC.sYaoqiProp[i] = yaoqiProp; // break; // } // } if (this.TweenFloatControl != null) { Destroy(this.TweenFloatControl); this.TweenFloatControl = null; } // this.TweenFloatControl = TweenFloat.Begin(0.5f, lastProp, yaoqiProp.dwYaoqiValue, ChangeYaoqiPropLabel, UpdateFinish); //本地判断是否开启封妖副本 /* * EctypeSelectConfigData ectypeSition; * EctypeConfigManager.Instance.EctypeSelectConfigList.TryGetValue((int)yaoqiProp.dwEctypeSection, out ectypeSition); * if (ectypeSition != null) * { * if (yaoqiProp.dwYaoqiValue >= ectypeSition._lEctypeYaoqiMax) * { * //创建妖女副本 * TraceUtil.Log("[创建妖女副本]" + yaoqiProp.dwEctypeSection); * CreateSirenEctype((int)yaoqiProp.dwEctypeSection); * } * } */ }