Skip to content
eisclimber edited this page Feb 11, 2024 · 2 revisions

Bowl

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

Description

This script represents a bowl of a scale, detecting coins and calculates a weight (1 for real, 0 for fake coins) from all coins in the bowl.

Members

Public Properties

  • ScaleSide side: (Readonly) Which Side of the scale this bowl is located.

Public Properties

  • int numTargets: (Readonly) How many targets are available/required for this TargetAreaTriggerer.

Public Methods

  • int GetWeight(): The sum of the weights of all coins in this bowl.
  • void ResetBowl(): Resets the bowls position and clears the registered coins. Doe not take care of resetting the coins positions.

Enums

  • ScaleSide: Which Side of the scale this bowl is located, either Left or Right.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally