r2mods/ilspy_dump/ror2_csproj/EntityStates/BaseBodyAttachmentState.cs

18 lines
415 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates;
public class BaseBodyAttachmentState : EntityState
{
protected NetworkedBodyAttachment bodyAttachment { get; private set; }
protected CharacterBody attachedBody { get; private set; }
public override void OnEnter()
{
base.OnEnter();
bodyAttachment = GetComponent<NetworkedBodyAttachment>();
attachedBody = (bodyAttachment ? bodyAttachment.attachedBody : null);
}
}