protected override void Spawn() { if (SpawnSystem.Spawn(id, out Poolable gameObject)) { var pos = FetchSpawnPointPosition(_spawnPoints, _spawnDistance); gameObject.transform.position = pos; } }
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; } }