Class AxisSpawner
This manages the process of spawning objects in your scene while the game is running.
You can set it up to spawn objects automatically when spawner is enabled, or trigger
the spawning process manually from other sources in your game.
Inheritance
object
AxisSpawner
Assembly: cs.temp.dll.dll
Syntax
public sealed class AxisSpawner : AxisGameObject
Fields
MaxSpawned
Declaration
Field Value
OnEnableDo
What to do on enable this spawner
Declaration
public AxisSpawnerOnEnable OnEnableDo
Field Value
OnSpawner
List of events dispatched by spawners
Declaration
public SpawnerEvents OnSpawner
Field Value
Type |
Description |
SpawnerEvents |
|
PoolingReuse
For better performance previously spawned objects with same name have
been deactivated will be respawned as new when same name object is to be
spawned.
Declaration
Field Value
SpawnFirework
Firework to burst at the spawned object when spawned
Declaration
public AxisFirework SpawnFirework
Field Value
Type |
Description |
AxisFirework |
|
SpawnInTilesWhen
If set to false when spawn occurs on a tile blocked by solid collider it is canceled and ignored.
Declaration
public BoolTileSpace SpawnInTilesWhen
Field Value
Type |
Description |
BoolTileSpace |
|
SpawnResetRotation
If true spawned objects should have rotation reset to zero,
false spawned objects will have the same rotation as spawner.
Declaration
public bool SpawnResetRotation
Field Value
Methods
FlashEnable()
Declaration
public void FlashEnable()
SetMaxSpawnedToCounter(AxisCounter)
Declaration
public void SetMaxSpawnedToCounter(AxisCounter c)
Parameters
Spawn(AxisSpawnerOnEnable)
Declaration
public void Spawn(AxisSpawnerOnEnable type)
Parameters
SpawnByName(string)
Declaration
public void SpawnByName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
StopChainedNextSpawns()
Declaration
public void StopChainedNextSpawns()