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

23 lines
561 B
C#

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