r2mods/ilspy_dump/ror2_csproj/EntityStates.Missions.Broth.../PreEncounter.cs

31 lines
616 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.Missions.BrotherEncounter;
public class PreEncounter : BaseState
{
public static float duration;
private ChildLocator childLocator;
public override void OnEnter()
{
base.OnEnter();
childLocator = GetComponent<ChildLocator>();
childLocator.FindChild("PreEncounter").gameObject.SetActive(value: true);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= duration)
{
outer.SetNextState(new Phase1());
}
}
public override void OnExit()
{
childLocator.FindChild("PreEncounter").gameObject.SetActive(value: false);
base.OnExit();
}
}