Firstborn/Assets/Kevin Iglesias/Villager Animations Pack/Example Scene/Scripts/BucketRouteAnimator.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

32 lines
646 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace KevinIglesias {
public class BucketRouteAnimator : StateMachineBehaviour {
BucketRoute bR;
public float delay;
public bool lift;
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) {
if(bR == null)
{
bR = animator.GetComponent<BucketRoute>();
}
if(bR != null)
{
bR.LiftBucket(delay, lift);
}
}
}
}