public void ReturnToPool(PowerUp p) { Debug.Log("Return to pool"); p.Finalize(); switch(p.celestialAlignment){ case CelestialAlignment.HELL: pooledHellPowerUps[GetPoolIndexForType(p)].ReturnInstance(p); break; case CelestialAlignment.HEAVEN: pooledHeavenPowerUps[GetPoolIndexForType(p)].ReturnInstance(p); break; } RemoveFromScreen(p); }