scorenumbers - eisclimber/ExPresS-XR GitHub Wiki

ScoreNumbers

Class in ExPresSXR.Minigames.Common

Inherits from UnityEngine.MonoBehaviour

Summary

Utility for setting up text-based feedback objects when scoring points in a minigame.

public class ScoreNumbers : MonoBehaviour

Methods

Name Description
DestroySelf() Destroys the GameObject for cleaning up the display.
GetRandomHueColor() Creates a new random hue color with the configured saturation and value.
RandomizeColorHue(bool) Randomizes the Hue of the text colors.
SetBonusColor(Color) Sets the color of the bonus score.
SetOutlineColor(Color) Sets the outline colors of both scores.
SetScoreColor(Color) Sets the color of the score.
SetupScoreData(int,int,string,string,string) Sets up the score with the provided data.

Properties

Name Description
BonusScore BonusScore to be displayed.
Score Score to be displayed.
⚠️ **GitHub.com Fallback** ⚠️