예제 #1
0
        void HandleOnImpulsePlay(AnimImpulse obj)
        {
            switch (obj)
            {

            }
        }
예제 #2
0
 public void ApplyImpulse(AnimImpulse animImpulse, int rate = 0)
 {
     if (Animator.IsNotNull())
     {
         Animator.ApplyImpulse(animImpulse, rate);
     }
 }
예제 #3
0
 public void ApplyImpulse(AnimImpulse animImpulse)
 {
     if (Animator.IsNotNull())
     {
         Animator.ApplyImpulse(animImpulse);
     }
 }
 public virtual void Play(AnimImpulse impulse, int rate = 0)
 {
     if (OnImpulsePlay.IsNotNull())
     {
         OnImpulsePlay(impulse, rate);
     }
 }
 public void ApplyImpulse(AnimImpulse animImpulse, double speed = 1d)
 {
     if (onImpulsePlay.IsNotNull())
     {
         onImpulsePlay(animImpulse);
     }
     OnApplyImpulse(animImpulse, speed);
 }
예제 #6
0
 public string GetImpulseName(AnimImpulse impulse)
 {
     switch (impulse)
     {
     case AnimImpulse.Fire:
         return(fire);
     }
     return(idling);
 }
예제 #7
0
 private AnimationClip GetImpulseClip(AnimImpulse impulse)
 {
     switch (impulse)
     {
     case AnimImpulse.Fire:
         return(fireClip);
     }
     return(idlingClip);
 }
예제 #8
0
        protected override void OnApplyImpulse(AnimImpulse animImpulse, double speed)
        {
            string animation = GetImpulseState(animImpulse);

            if (!string.IsNullOrEmpty(animation))
            {
                animator.Play(animation, -1, 0f);
            }
        }
예제 #9
0
 protected override void OnApplyImpulse(AnimImpulse animImpulse, double speed)
 {
     if (CanAnimate)
     {
         AnimationClip clip = GetImpulseClip(animImpulse);
         if (clip.IsNotNull())
         {
             animator.Play(clip.name, PlayMode.StopSameLayer);
         }
     }
 }
예제 #10
0
        private AnimationClip GetImpulseClip(AnimImpulse impulse)
        {
            switch (impulse)
            {
            case AnimImpulse.Fire:
                return(fireClip);

            case AnimImpulse.SpecialAttack:
                return(specialAttackClip);
            }
            return(idlingClip);
        }
예제 #11
0
        public string GetImpulseName(AnimImpulse impulse)
        {
            switch (impulse)
            {
            case AnimImpulse.Fire:
                return(fire);

            case AnimImpulse.SpecialAttack:
                return(specialAttack);
            }
            return(idling);
        }
예제 #12
0
        public override void Play(AnimImpulse impulse, int rate = 0)
        {
            base.Play(impulse, rate);

            if (CanAnimate)
            {
                AnimationClip clip = GetImpulseClip(impulse);
                if (clip.IsNotNull())
                {
                    animator.Blend(clip.name);
                }
            }
        }
예제 #13
0
 public void Play(AnimImpulse impulse)
 {
     if (OnImpulsePlay.IsNotNull())
     {
         OnImpulsePlay(impulse);
     }
     if (CanAnimate)
     {
         AnimationClip clip = GetImpulseClip(impulse);
         if (clip.IsNotNull())
         {
             animator.CrossFade(clip.name);
         }
     }
 }
예제 #14
0
        public virtual void Play(AnimImpulse impulse, int rate = 0)
        {
            if (OnImpulsePlay.IsNotNull())
            {
                OnImpulsePlay(impulse, rate);
            }

            if (CanAnimate)
            {
                AnimationClip clip = GetImpulseClip(impulse);
                if (clip.IsNotNull())
                {
                    //animator.Blend(clip.name,.8f,fadeLength);
                    animator.Play(clip.name);
                }
            }
        }
예제 #15
0
        private string GetImpulseState(AnimImpulse impulse)
        {
            switch (impulse)
            {
            case AnimImpulse.Fire:
                return(_fire);

            case AnimImpulse.SpecialFire:
                return(_specialFire);

            case AnimImpulse.SpecialAttack:
                return(_specialAttack);

            case AnimImpulse.Extra:
                return(_extra);
            }
            return(_idling);
        }
예제 #16
0
        protected override AnimationClip GetImpulseClip(AnimImpulse impulse)
        {
            switch (impulse)
            {
            case AnimImpulse.Fire:
                return(fireClip);

            case AnimImpulse.SpecialFire:
                return(specialFireClip);

            case AnimImpulse.SpecialAttack:
                return(specialAttackClip);

            case AnimImpulse.Extra:
                return(extraClip);
            }
            return(idlingClip);
        }
예제 #17
0
        protected override string GetImpulseName(AnimImpulse impulse)
        {
            switch (impulse)
            {
            case AnimImpulse.Fire:
                return(fire);

            case AnimImpulse.SpecialFire:
                return(specialFire);

            case AnimImpulse.SpecialAttack:
                return(specialAttack);

            case AnimImpulse.Extra:
                return(extra);
            }
            return(idling);
        }
예제 #18
0
 public void Play(AnimImpulse impulse)
 {
     if (OnImpulsePlay .IsNotNull ())
         OnImpulsePlay (impulse);
     if (CanAnimate) {
         AnimationClip clip = GetImpulseClip (impulse);
         if (clip .IsNotNull ())
         {
             animator.CrossFade (clip.name);
         }
     }
 }
예제 #19
0
        private AnimationClip GetImpulseClip(AnimImpulse impulse)
        {
            switch (impulse) {
            case AnimImpulse.Fire:
                return fireClip;

            }
            return idlingClip;
        }
예제 #20
0
 public void ApplyImpulse(AnimImpulse impulse)
 {
     Play(impulse);
 }
예제 #21
0
 public void ApplyImpulse(AnimImpulse impulse)
 {
     Play(impulse);
 }
예제 #22
0
        public string GetImpulseName(AnimImpulse impulse)
        {
            switch (impulse) {
            case AnimImpulse.Fire:
                return fire;

            }
            return idling;
        }
예제 #23
0
 void HandleOnImpulsePlay(AnimImpulse obj)
 {
     switch (obj)
     {
     }
 }
예제 #24
0
 protected virtual AnimationClip GetImpulseClip(AnimImpulse impulse)
 {
     return(null);
 }
 void HandleOnImpulsePlay(AnimImpulse obj, int rate)
 {
 }
예제 #26
0
 protected virtual string GetImpulseName(AnimImpulse impulse)
 {
     return(null);
 }
예제 #27
0
 void HandleOnImpulsePlay(AnimImpulse obj)
 {
 }
예제 #28
0
 public virtual void ApplyImpulse(AnimImpulse animImpulse, int rate = 0)
 {
     Play(animImpulse, rate);
 }
 protected abstract void OnApplyImpulse(AnimImpulse animImpulse, double speed);