TargetController Class¶
Description¶
MonoBehaviour which controls Target in the scene, providing a few extensions in the Unity environment.
Enums¶
public enum TargetController.ActiveControlStrategy |
Strategy to control the GameObject .active. |
MonoBehaviour Messages¶
protected virtual void Start() |
Fields¶
ActiveControl¶
- C#
public TargetController.ActiveControlStrategy ActiveControl
Strategy to control the GameObject .active. If you are willing to control GameObject .active or there are other components controlling GameObject .active, make sure to set it to TargetController.ActiveControlStrategy.None .
Properties¶
IsTracked¶
- C#
public bool IsTracked { get; }
Is the target being tracked at the moment.
Events¶
TargetFound¶
- C#
public event Action TargetFound
Target Found event.
TargetLost¶
- C#
public event Action TargetLost
Target Lost event.