vanilla.roulette
Roulette โ Vanilla Roulette is a toolkit for managing chance-related behavior like loot tables.
Install
# Unity: add the scoped registry, then Window > Package Manager > My Registries
# npm:
npm install vanilla.roulette --registry=https://npm.vanilla.plus
Dependencies
None.
Readme
Vanilla Roulette
Vanilla Roulette is part of the Vanilla For Unity SDK.
Vanilla Roulette is a package for handling chance-based behaviour like loot tables, spawn chances, etc
Installation
Vanilla Plus packages are installed through Unity's Package Manager using a scoped registry. Open your Unity Project of choice and select:
> Edit menu > Project settings > Package Manager > Scoped Registries > Plus button
Then add:
name: Vanilla Plus url: http://35.231.76.113:4873/ Scopes: vanilla.plus
Usage
Pop example code markup below:
public class MyNewClass : MonoBehaviour
{
public Text tapCountText;
void Start() => tapCountText = GetComponentDynamic<Text>(GetComponentStyle.InParent);
void Update()
{
if (!AnyTouchBegan()) return;
Log("Can't you hear me knockin'?");
}
}
Debugging
You can enable debugging for this package by including the keywords DEBUG and <PACKAGE_NAME_HERE> in the Unity Editor scripting define symbols.
Contributing
Please don't. I have no idea what a pull request is and at this point I'm too afraid to ask.
If you took this package personally, let me know.
Author
Lucas Hehir