r2mods/ilspy_dump/ror2_csproj/EntityStates.LunarTeleporter/Active.cs

23 lines
570 B
C#

using RoR2;
using UnityEngine;
using UnityEngine.Networking;
namespace EntityStates.LunarTeleporter;
public class Active : LunarTeleporterBaseState
{
private static int ActiveStateHash = Animator.StringToHash("Active");
public override void OnEnter()
{
base.OnEnter();
preferredInteractability = Interactability.Available;
PlayAnimation("Base", ActiveStateHash);
outer.mainStateType = new SerializableEntityStateType(typeof(ActiveToIdle));
if (NetworkServer.active)
{
teleporterInteraction.sceneExitController.useRunNextStageScene = false;
}
}
}