public PhxProjectiles() { Projectiles = new PhxPool <PhxProjectile>(Game.ProjPrefab, "Projectiles", COUNT, 2f); for (int i = 0; i < Projectiles.Objects.Length; ++i) { Projectiles.Objects[i].OnHit += ProjectileHit; } Sparks = new PhxPool <ParticleSystem>(Game.SparkPrefab, "Sparks", COUNT, 1.5f); }
public void Destroy() { Projectiles.Destroy(); Projectiles = null; }