RandomScalePooledObject
A class in Root.Township, the global namespace.
Gives a pooled object a random scale each time it's taken from the pool.
- Listed in Global namespace: Q to R
- Inherits or implements
MonoBehaviour - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
RandomScalePooledObject() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void Awake() | Hooks the pooled object's Requested event. |
private void SetScale(PooledObject pooledObject) | Sets a random local scale, uniform or per axis. |