bowl - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Minigames.CoinScale
Inherits from UnityEngine.MonoBehaviour
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.
public class Bowl : MonoBehaviour| Name | Description |
|---|---|
| ScaleSide | Which Side of the scale this bowl is located. |
| Name | Description |
|---|---|
| GetWeight() | The sum of the weights of all coins in this bowl. |
| ResetBowl() | Resets the bowls position and clears the registered coins. Doe not take care of resetting the coins positions. |
| Name | Description |
|---|---|
| Side | Which Side of the scale this bowl is located. |