Skip to main content

HurtSense

A class in Root.Township, Alta.Intelligence.

Sense asset giving how much a target has hurt the creature, from its Hurt record.

Constructors​

MemberWhat it is
HurtSense()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
override float Get(IAgent requester, ITarget target)The creature's hurt value for the target, or 0 if the target hasn't hurt it.