Installation
- Find the prefab on
Packages/valenvrc - Drinking Roulette/Runtimeand drag it to your scene. - Resize the AutoOptInTrigger found inside the OptInOut gameobject.
- Optionally, disable the trigger and use the OptIn and OptOut buttons instead.
- Navigate this wiki to learn how to load your custom prompt packs and languages.
Settings
- DebugMode : bool - Prints additional messages in console.
- NoRepeatMode : bool - If true, store a list of prompts that already appeared to avoid duplicates. Automatically resets if all prompts have been used.
- Cooldown : float - Time in seconds to wait between spins.
- WheelSets : WheelSet[] - List of available WheelSets (prompt packs) to use.
References
You shouldnt need to touch these unless you know exactly what you are doing.
- FloatingText : TextMeshProUGUI - Text where the current prompt is displayed.
- LastSpunBy : TextMeshProUGUI - Text to display the username of the last player that spinned the wheel.
- BottleAnimator : Animator - Animator of the bottle.
note
The roulette bottle always spins the same amount and lands on the same place, its not meant to be used as a player selection, see variables for a proper way to randomly select a player for prompts.