targetareatriggerer - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Minigames.TargetArea
Inherits from UnityEngine.MonoBehaviour
Triggers a TargetArea that are set as target and tracks the progress of triggering all targets.
Should be attached to the GameObject holding the Collider that is used as a trigger.
public class TargetAreaTriggerer : MonoBehaviour| Name | Description |
|---|---|
| OnAllTargetsCompleted | If a all TargetAreas were completed. |
| OnSingleTargetCompleted | If a single TargetArea was completed but not all. |
| OnTargetAreaActionPerformed | If an action was performed on a valid TargetArea. |
| Name | Description |
|---|---|
| SetupTargets() | Connects this to the TagetAreas in _targets. |
| Name | Description |
|---|---|
| NumTargets | How many targets are available/required for this TargetAreaTriggerer. |
| Targets | The TargetAreas that are required to be completed. |