GameFramework.EntityController.PauseSkillAnimation C# (CSharp) Method

PauseSkillAnimation() private method

private PauseSkillAnimation ( int actorId, bool pause ) : void
actorId int
pause bool
return void
        internal void PauseSkillAnimation(int actorId, bool pause)
        {
            UnityEngine.GameObject obj = GetGameObject(actorId);
            if (null != obj) {
                UnityEngine.Animator animator = obj.GetComponentInChildren<UnityEngine.Animator>();
                if (null != animator) {
                    if (pause)
                        animator.speed = 0;
                    else
                        animator.speed = 1;
                }
            }
        }

Usage Example

コード例 #1
0
 static public int PauseSkillAnimation(IntPtr l)
 {
     try {
         GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.PauseSkillAnimation(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }