Ejemplo n.º 1
0
 protected override void Spawn()
 {
     if (SpawnSystem.Spawn(id, out Poolable gameObject))
     {
         var pos = FetchSpawnPointPosition(_spawnPoints, _spawnDistance);
         gameObject.transform.position = pos;
     }
 }
Ejemplo n.º 2
0
 protected override void Spawn()
 {
     if (SpawnSystem.Spawn(id, out Poolable gameObject))
     {
         var pos = transform.position;
         pos.x += Random.Range(-range.x, range.x);
         pos.y += Random.Range(-range.y, range.y);
         pos.z += Random.Range(-range.z, range.z);
         gameObject.transform.position = pos;
     }
 }