A class in Root.Township, Alta.Intelligence.
The Target for a player, on the player prefab, so creatures can sense, chase and attack players. Its position is the head and its ground position the feet.
Constructors
| Member | What it is |
|---|
PlayerCharacterTarget() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Properties
| Member | What it is |
|---|
PlayerController Character { get; } | The player's PlayerController. |
override Vector3 GroundPosition { get; } | The player's real feet position. |
override bool IsAlive { get; } | True while the player is alive and not a spirit. |
override Vector3 Position { get; } | The player's head position. |
Methods
| Member | What it is |
|---|
override IEnumerable<AttackParameters> Attacks() (iterator) | The current attack of every impact generator on the tools the player holds, so creatures can react to incoming swings. |