Unidade C# foreach
foreach(var item in collection) {
}
Caveman54
foreach(var item in collection) {
}
public GameObject[] ObjetoAOcultar;
foreach(GameObject objet in ObjetoAOcultar)
{
objet.GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1f, alphaLevel);
}