Spawns random items.
More...
|
System.EventHandler< System.EventArgs > | Spawned |
| Occurs when an item is spawned. More...
|
|
◆ OnSpawned()
void PlatformerPro.RandomItemSpawner.OnSpawned |
( |
| ) |
|
|
protected |
Raises the spawned event.
◆ Spawn()
bool PlatformerPro.RandomItemSpawner.Spawn |
( |
| ) |
|
Spawn this instance.
- Returns
- true if there are items left to spawn or false otherwise.
◆ itemPrefabs
List<GameObject> PlatformerPro.RandomItemSpawner.itemPrefabs |
List of prefabs we can spawn. To change liklihood of spawning different items just add more items of the same type.
◆ numberToSpawn
int PlatformerPro.RandomItemSpawner.numberToSpawn = 1 |
◆ removeFromListOnSpawn
bool PlatformerPro.RandomItemSpawner.removeFromListOnSpawn |
After an item spawns should we remove it from the list? Handy if you want to spawn an exact set of items in random order or if you don't want to spawn rare items more than once.
◆ spawnPositionOffset
Vector3 PlatformerPro.RandomItemSpawner.spawnPositionOffset |
The spawn position offset.
◆ spawnsPerHit
int PlatformerPro.RandomItemSpawner.spawnsPerHit = 1 |
◆ spawnVelocities
List<Vector3> PlatformerPro.RandomItemSpawner.spawnVelocities |
◆ Spawned
System.EventHandler<System.EventArgs> PlatformerPro.RandomItemSpawner.Spawned |
Occurs when an item is spawned.
The documentation for this class was generated from the following file: