GameFramework.EntityController.StopSkillAnimation C# (CSharp) Method

StopSkillAnimation() private method

private StopSkillAnimation ( int actorId ) : void
actorId int
return void
        internal void StopSkillAnimation(int actorId)
        {
            UnityEngine.GameObject obj = GetGameObject(actorId);
            if (null != obj) {
                UnityEngine.Animator animator = obj.GetComponentInChildren<UnityEngine.Animator>();
                if (null != animator) {
                    animator.Play("Stand");
                }
            }
        }

Usage Example

Example #1
0
 static public int StopSkillAnimation(IntPtr l)
 {
     try {
         GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.StopSkillAnimation(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }