targetareatriggerer - eisclimber/ExPresS-XR GitHub Wiki

TargetAreaTriggerer

Class in ExPresSXR.Minigames.TargetArea

Inherits from UnityEngine.MonoBehaviour

Summary

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

Fields

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.

Methods

Name Description
SetupTargets() Connects this to the TagetAreas in _targets.

Properties

Name Description
NumTargets How many targets are available/required for this TargetAreaTriggerer.
Targets The TargetAreas that are required to be completed.
⚠️ **GitHub.com Fallback** ⚠️