r2mods/ilspy_dump/ror2_csproj/EntityStates.GameOver/RoR2MainEndingStart.cs

28 lines
480 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine.Networking;
namespace EntityStates.GameOver;
public class RoR2MainEndingStart : BaseGameOverControllerState
{
public static float duration = 6f;
public override void FixedUpdate()
{
base.FixedUpdate();
if (NetworkServer.active && base.fixedAge >= duration)
{
outer.SetNextState(new RoR2MainEndingSetSceneAndWaitForPlayers());
}
}
public override void OnEnter()
{
base.OnEnter();
}
public override void OnExit()
{
base.OnExit();
}
}