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

Scale

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

Description

Compares the weight in both bowls.

Members

Editor Properties

  • Bowl _leftBowl: Reference to the left Bowl.
  • Bowl _rightBowl: Reference to the right Bowl.

Public Methods

  • void CheckBowls(): Checks and calculates the current state of the scale (which side is lower), emits the result via the Event OnScaleCheck.
  • void resetScale(): Resets the state of the scale, by resetting both bowls.

Events

  • OnScaleCheck<ScaleState>: Emitted when CheckBowls() is called, returning the current state of the scale.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally