class MAGES::SceneGraph::UseBehavior¶
Overview¶
Behavior for the Use Action. More…
class UseBehavior: public MAGES::SceneGraph::BaseBehavior { public: // properties GameObject UseCollider; float TimetoUse; bool ResetTimerOnExit; bool UseColliderIsTrigger; UnityEvent OnUsed; };
Inherited Members¶
public: // properties string ObjectID; BaseActionData ActionData;
Detailed Documentation¶
Behavior for the Use Action.
Properties¶
GameObject UseCollider
Gets or sets the use Collider.
float TimetoUse
Gets or sets the time to use the object. If 0, the object will perform the action as soon as the user touches it.
bool ResetTimerOnExit
Gets or sets a value indicating whether the timer resets on exit.
bool UseColliderIsTrigger
Gets or sets a value indicating whether the colliders of the Use Collider object will be set to trigger.
UnityEvent OnUsed
Gets the event.