Example #1
0
 // spawn entity of there are fewer than the max allowed by spawnPool
 void Spawn()
 {
     SpawnableObject instance = enemySpawner.GetRandom();
 }
Example #2
0
 void Die()
 {
     GameManager.instance.AddScore(scoreToGive);
     pickupSpawner.GetRandom().transform.position = transform.position;
     creator.Reclaim(this);
 }