r2mods/ilspy_dump/ror2_csproj/EntityStates.Engi.MineDeployer/WaitForDeath.cs

18 lines
330 B
C#
Raw Permalink Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine.Networking;
namespace EntityStates.Engi.MineDeployer;
public class WaitForDeath : BaseMineDeployerState
{
public static float duration;
public override void FixedUpdate()
{
base.FixedUpdate();
if (NetworkServer.active && duration <= base.fixedAge)
{
EntityState.Destroy(base.gameObject);
}
}
}