r2mods/ilspy_dump/ror2_csproj/EntityStates.ParentEgg/PreHatch.cs

18 lines
348 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Networking;
namespace EntityStates.ParentEgg;
public class PreHatch : BaseEggState
{
public override void OnEnter()
{
base.OnEnter();
GetComponent<CharacterDeathBehavior>().deathState = new SerializableEntityStateType(typeof(Hatch));
if (NetworkServer.active)
{
base.healthComponent.Suicide();
}
}
}