public ShieldMotion(MonoBehaviour coroutineMono, Animator animator, int reproductionOrder) : base(coroutineMono, animator, reproductionOrder, true) { animotionParameter = new AnimationAnimotionParameter(new AnimationTriggerReproducer(attackTriggerString), new AnimationTriggerReproducer(SkipTriggerString)); string layerName = animator.GetLayerName(0); fullPathHash = Animator.StringToHash(layerName + ".Active"); waitTime = animator.GetCurrentAnimatorStateInfo(0).length; }
public MoveMotion(MonoBehaviour coroutineMono, Animator animator, int reproductionOrder, bool specialCheck = false, int hashID = 0) : base(coroutineMono, animator, reproductionOrder, specialCheck) { animotionParameter = new AnimationAnimotionParameter(new AnimationTriggerReproducer(moveTriggerString), new AnimationTriggerReproducer(SkipTriggerString)); if (hashID != 0) { this.hashID = hashID; } }
public AttackMotion(MonoBehaviour coroutineMono, Animator animator, int reproductionOrder) : base(coroutineMono, animator, reproductionOrder) { animotionParameter = new AnimationAnimotionParameter(new AnimationTriggerReproducer(attackTriggerString), new AnimationTriggerReproducer(SkipTriggerString)); }
public IdlleMotion(MonoBehaviour coroutineMono, Animator animator, int reproductionOrder, bool specialCheck = false) : base(coroutineMono, animator, reproductionOrder, specialCheck) { animotionParameter = new AnimationAnimotionParameter(new AnimationTriggerReproducer(idlleTriggerString), new AnimationTriggerReproducer(SkipTriggerString)); }