Exemple #1
0
 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();
     }
 }
Exemple #2
0
 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();
        }
    }
Exemple #4
0
 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);
     }
 }
Exemple #5
0
        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);
            }
        }
Exemple #6
0
 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();
 }
Exemple #7
0
 public virtual void OnAnimationEnd(AnimationEndCmd cmd)
 {
 }