18 lines
330 B
C#
18 lines
330 B
C#
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|