public void BuffAllies(string action) { //Busco los aliados cercanos y aplico un buff --- Hacer varios buff para que sea random Collider[] allies = Physics.OverlapSphere(transform.position, buffRange); int count = 0; for (int i = 0; i < allies.Length; i++) { Being ally = allies[i].GetComponent <Being>(); if (ally && ally.selectedTeam == selectedTeam) { count++; ally.ApplyBuff(action); } } flags.buffAvailable = false; }