RandomChildWeight
A class in Root.Township, the global namespace.
Gives a child object a weight for ChooseRandomChild, which picks one child by weight. Children without it count as weight 1.
- Listed in Global namespace: Q to R
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
RandomChildWeight() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
Properties
| Member | What it is |
|---|---|
float Weight { get; } | Weight of this child in a random pick, 1 by default. |