public virtual void OnAnimationEnd(AnimationEndCmd cmd) { if (this.CurOutPutAction != string.Empty && this.CurOutPutAction != cmd.actName) { return; } if (ActionStatusName.IsDieAction(this.CurActionStatus)) { this.DeadAnimationEnd(); } else if (DataReader <Action> .Contains(this.CurActionStatus)) { if (DataReader <Action> .Get(this.CurActionStatus).loop == 0) { this.EndAnimationResetToIdle(); } } else { if (!string.IsNullOrEmpty(this.CurActionStatus)) { Debug.LogError("Action表不存在 " + this.CurActionStatus); } this.EndAnimationResetToIdle(); } }
public override void OnAnimationEnd(AnimationEndCmd cmd) { if (this.npcEvent != null) { this.npcEvent.OnAnimationEnd(cmd); } }
public override void OnAnimationEnd(AnimationEndCmd cmd) { base.OnAnimationEnd(cmd); CaiJiPeiZhi caiJiPeiZhi = DataReader <CaiJiPeiZhi> .Get(this.collectionDataID); if (caiJiPeiZhi == null) { return; } if (this.collectionState == CollectionNPCBehavior.CollectionNPCStateType.Collected && cmd.actName == caiJiPeiZhi.action2) { this.CollectedActionEnd(); } }
protected void OnCGAnimationEnd(AnimationEndCmd cmd) { if (this.ActionEndCallback.ContainsKey(this.CurActionName)) { Action action = this.ActionEndCallback.get_Item(this.CurActionName); if (action != null) { this.ActionEndCallback.Remove(this.CurActionName); action.Invoke(); } } if (DataReader <Action> .Get(cmd.actName).loop == 0 && cmd.actName != "die" && this.CurActionName != "victory") { this.SetAction("idle", null); } }
public override void OnAnimationEnd(AnimationEndCmd cmd) { ActorModelType actorModelType = this.modelType; if (actorModelType != ActorModelType.UI) { if (actorModelType == ActorModelType.CG) { this.OnCGAnimationEnd(cmd); } } else { this.OnUIAnimationEnd(cmd); } }
protected void OnUIAnimationEnd(AnimationEndCmd cmd) { if (XUtility.StartsWith(cmd.actName, "idle") || XUtility.StartsWith(cmd.actName, "die")) { this.DoUIDisplaySkillEnd(); return; } this.ResetAll(); this.RemoveFxs(); if (ControllerTool.SplitIsCity(this.GetAnimator())) { this.PreciseSetAction("idle_city"); } else { this.PreciseSetAction("idle"); } this.DoUIDisplaySkillEnd(); }
public virtual void OnAnimationEnd(AnimationEndCmd cmd) { }