22 lines
509 B
C#
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();
|
||
|
}
|
||
|
}
|
||
|
}
|