r2mods/ilspy_dump/ror2_csproj/EntityStates.ScavMonster/Sit.cs

26 lines
476 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates.ScavMonster;
public class Sit : BaseSitState
{
public static string soundString;
public static float minimumDuration;
public override void OnEnter()
{
base.OnEnter();
PlayCrossfade("Body", "SitLoop", 0.1f);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.inputBank.moveVector.sqrMagnitude >= Mathf.Epsilon && base.fixedAge >= minimumDuration)
{
outer.SetNextState(new ExitSit());
}
}
}