public static ExplosionController Get(string name) { if (indice[name] >= CAPACITY) { indice[name] = 0; } ExplosionController explosion = explosions[name][indice[name]]; explosion.gameObject.SetActive(true); explosion.Reset(); indice[name]++; return(explosion); }