r2mods/ilspy_dump/ror2_csproj/EntityStates.ArtifactShell/WaitForIntro.cs

28 lines
504 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine.Networking;
namespace EntityStates.ArtifactShell;
public class WaitForIntro : ArtifactShellBaseState
{
public static float baseDuration = 10f;
private float duration;
protected override bool interactionAvailable => false;
public override void OnEnter()
{
base.OnEnter();
duration = baseDuration;
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (NetworkServer.active && base.fixedAge >= duration)
{
outer.SetNextState(new WaitForKey());
}
}
}