Constructs a new Coin.
The Babylon.js scene.
The mesh for the coin (can be null, will be loaded by factory).
The score value for collecting the coin.
Accepts a visitor (for the visitor pattern). Plays the collect sound and calls the visitor's visitCoin method.
The GameObjectVisitor.
Adds an observer (not used for coins).
Adds a sound effect to the coin.
The sound name.
The StaticSound instance.
Returns the unique ID of the coin.
Returns the main mesh of the coin.
Returns all meshes associated with the coin.
Returns the score value of the coin.
Returns the type of the object ("coin").
Called on contact; returns false (no special contact logic).
Called when the game is paused (no-op for coins).
Called when the game is resumed (no-op for coins).
Plays a sound effect by name.
The sound name.
Starts the coin's rotation animation.
Coin represents a collectible coin in the game.