r2mods/ilspy_dump/ror2_csproj/EntityStates.Geode/GeodeInert.cs

29 lines
551 B
C#

using UnityEngine;
namespace EntityStates.Geode;
public class GeodeInert : GeodeEntityStates
{
[SerializeField]
public float reactivationDuration;
public override void OnEnter()
{
base.OnEnter();
cleansingIndicator.SetActive(value: false);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= reactivationDuration && geodeController.ShouldRegenerate)
{
outer.SetNextState(new GeodeRegenerate());
}
else if (!geodeController.ShouldRegenerate)
{
EntityState.Destroy(base.gameObject);
}
}
}