Interface ITargetController
Interface for a character's target controller, handling targeting logic and events.
public interface ITargetController : ICharacterBehaviour
- Inherited Members
Properties
Current
The current target information.
TargetInfo Current { get; }
Property Value
OnTargetChangeTriggers
Triggers invoked when the target changes to a new target.
List<Trigger> OnTargetChangeTriggers { get; }
Property Value
OnTargetClearTriggers
Triggers invoked when the current target is cleared.
List<Trigger> OnTargetClearTriggers { get; }
Property Value
Methods
UpdateTarget(Vector3, Vector3, float)
Updates the target based on the given origin, direction, and max distance.
TargetInfo UpdateTarget(Vector3 origin, Vector3 direction, float maxDistance)
Parameters
originVector3directionVector3maxDistancefloat
Returns
Events
OnChangeTarget
Event triggered when the target changes.
event Action<Transform> OnChangeTarget
Event Type
- Action<Transform>
OnClearTarget
Event triggered when the target is cleared.
event Action<Transform> OnClearTarget
Event Type
- Action<Transform>
OnUpdateTarget
Event triggered when the target is updated.
event Action<Transform> OnUpdateTarget
Event Type
- Action<Transform>