r2mods/ilspy_dump/ror2_csproj/EntityStates.Missions.Moon/MoonBatteryInactive.cs

19 lines
456 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.Missions.Moon;
public class MoonBatteryInactive : MoonBatteryBaseState
{
public override void OnEnter()
{
base.OnEnter();
purchaseInteraction.SetAvailable(newAvailable: true);
FindModelChild("InactiveFX").gameObject.SetActive(value: true);
}
public override void OnExit()
{
FindModelChild("InactiveFX").gameObject.SetActive(value: false);
purchaseInteraction.SetAvailable(newAvailable: false);
base.OnExit();
}
}