r2mods/ilspy_dump/ror2_csproj/EntityStates.SurvivorPod.Ba.../Opening.cs

32 lines
591 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.SurvivorPod.BatteryPanel;
public class Opening : BaseBatteryPanelState
{
public static float duration;
public static string openSoundString;
public override void OnEnter()
{
base.OnEnter();
PlayPodAnimation("Additive", "OpenPanel", "OpenPanel.playbackRate", duration);
Util.PlaySound(openSoundString, base.gameObject);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= duration && base.isAuthority)
{
outer.SetNextState(new Opened());
}
}
public override void OnExit()
{
base.OnExit();
}
}