using UnityEngine; namespace EntityStates.Railgunner.Backpack; public class UseCryo : BaseBackpack { [SerializeField] public float duration; [SerializeField] public string animationLayerName; [SerializeField] public string animationStateName; [SerializeField] public string animationPlaybackRateParam; public override void OnEnter() { base.OnEnter(); PlayAnimation(animationLayerName, animationStateName, animationPlaybackRateParam, duration); } public override void FixedUpdate() { base.FixedUpdate(); if (base.fixedAge >= duration) { outer.SetNextState(new OnlineCryo()); } } public override InterruptPriority GetMinimumInterruptPriority() { return InterruptPriority.Death; } }