r2mods/ilspy_dump/ror2_csproj/EntityStates.SurvivorPod/SurvivorPodBaseState.cs

22 lines
509 B
C#

using RoR2;
namespace EntityStates.SurvivorPod;
public abstract class SurvivorPodBaseState : EntityState
{
protected SurvivorPodController survivorPodController { get; private set; }
protected VehicleSeat vehicleSeat { get; private set; }
public override void OnEnter()
{
base.OnEnter();
survivorPodController = GetComponent<SurvivorPodController>();
vehicleSeat = survivorPodController?.vehicleSeat;
if (!survivorPodController && base.isAuthority)
{
outer.SetNextStateToMain();
}
}
}