using RoR2; namespace EntityStates.LunarTeleporter; public class LunarTeleporterBaseState : BaseState { protected GenericInteraction genericInteraction; protected Interactability preferredInteractability = Interactability.Available; protected TeleporterInteraction teleporterInteraction; public override void OnEnter() { base.OnEnter(); genericInteraction = GetComponent(); teleporterInteraction = base.transform.root.GetComponent(); } public override void FixedUpdate() { base.FixedUpdate(); if ((bool)TeleporterInteraction.instance) { if (TeleporterInteraction.instance.isIdle) { genericInteraction.Networkinteractability = preferredInteractability; } else { genericInteraction.Networkinteractability = Interactability.Disabled; } } } }