r2mods/ilspy_dump/ror2_csproj/EntityStates.Missions.Lunar.../WaitForAllMonstersDead.cs

25 lines
430 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Networking;
namespace EntityStates.Missions.LunarScavengerEncounter;
public class WaitForAllMonstersDead : BaseState
{
public override void FixedUpdate()
{
base.FixedUpdate();
if (NetworkServer.active)
{
FixedUpdateServer();
}
}
private void FixedUpdateServer()
{
if (TeamComponent.GetTeamMembers(TeamIndex.Monster).Count == 0)
{
outer.SetNextState(new FadeOut());
}
}
}