World Requirement Trigger

World requirement trigger component.

The world requirement trigger component can change a requirement value at a certain time and place, depending on the trigger method.

Properties

Requirement Key: The key of the requirement.

Trigger Method: How or when it's triggered.

  1. On Collision Enter 2D or 3D: Triggered when the triggerer collides with a collider attached to this GameObject.

  2. On Collision Exit 2D or 3D: Triggered when the triggerer exits collision with a collider attached to this GameObject.

  3. On Awake: Triggered when the component's Awake method is called.

  4. On Start: Triggered when the component's Start method is called.

  5. On Disable: Triggered when the GameObject becomes inactive.

  6. On Enable: Triggered when the GameObject becomes active.

  7. On Destroy: Triggered when the GameObject is destroyed.

  8. Manually Call Trigger: There is no automatic trigger. The Trigger method must be called manually through code.

Triggerer: The GameObject that causes the trigger on collision.

Requirement Type: The requirement type. Supported types are Integer, Float, and Boolean.

Change Type: How the requirement value should be changed.

  1. Increment: Increase the value by a certain number.

  2. Decrement: Decrease the value by a certain number.

  3. Set Value: Set the value to a certain number.

Int Value: The integer value the requirement should change by/to.

Float Value: The float value the requirement should change by/to.

Bool Value: The Boolean value the requirement should change by/to.

Destroy Component On Trigger: If the component should be destroyed when triggered.

Last updated