Skip to content

Target Area

eisclimber edited this page Feb 11, 2024 · 2 revisions

Target Area

class in ExPresSXR.Minigames.SwordCleaning / Extends UnityEngine.MonoBehaviour
Component added via Component Menu

Description

Triggers TargetArea that are set as target and tracks the progress of triggering all targets.

Members

Editor Properties

  • int _actionsToComplete: How many times the triggerer must enter and exit for the target to be completed. Default = 1.
  • Collider targetCollider: The collider used to detect collisions.

Public Properties

  • bool completed: If the number of actions were performed and the target is completed, not registering any more actions.

Public Methods

  • void QueueAction(): Adds another action to be performed and handle completion.

Events

  • OnActionPerformed: If an action was performed (whilst the target has not been completed).
  • OnCompleted: If an action completes the target.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally