r2mods/ilspy_dump/ror2_csproj/EntityStates.ArtifactShell/Death.cs

31 lines
571 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.ArtifactShell;
public class Death : ArtifactShellBaseState
{
public static float duration;
protected override bool interactionAvailable => false;
public override void OnEnter()
{
base.OnEnter();
Util.PlaySound(GetComponent<SfxLocator>().deathSound, base.gameObject);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge > duration)
{
EntityState.Destroy(base.gameObject);
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.Death;
}
}