Skip to content

Coin Initializer

eisclimber edited this page Feb 11, 2024 · 2 revisions

Coin Initializer

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

Description

(Re-)Sets the positions of coins and optionally randomizes the fake coin.

Members

Editor Properties

  • List<CoinWeight> _coins: GameObjects of the for coins/objects to scale.
  • Transform[] _positions: Transforms of the objects positions where the coins/objects shall be placed randomly.
  • bool _randomizeFakeCoin: If enabled will set a random coin weight to be fake. Default: true

Public Methods

  • void ResetCoins(): Resets the coins, shuffles them and optionally randomizes the fake one.
  • void ResetCoinPositions(): Resets only the coins positions, keeping order and not changing the fake one.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally