示例#1
0
 void Populate(int numToSpawn)
 {
     for (int i = 0; i < numToSpawn; i++)
     {
         hf.SpawnHost(Random.insideUnitCircle * gameObject.transform.localScale.x * 0.5f);
     }
 }
示例#2
0
 // Spawn potentially mutated copy of host
 // Requires 2 parents
 // Call on collision with same species
 void Reproduce(Host parent1, Host parent2)
 {
     hf.SpawnHost(transform.position, parent1, parent2);
 }