this is the code :

```
void Update()
{
vencedor = Mathf.Min(/*gets all array float values then select the minimum value*/);
}
```

does someone know how to do it?

this is the code :

```
void Update()
{
vencedor = Mathf.Min(/*gets all array float values then select the minimum value*/);
}
```

does someone know how to do it?

Mathf.Min can already accept an array of floats and return the smallest one of the array. I don’t know where your array comes from so I’ll just give you a simple example.

```
void Update()
{
float[] arrayOfFloats = {1.0f,2.5f,3.0f,4.2f};
vencedor = Mathf.Min( arrayOfFloats);
}
```

In this case Mathf.Min will return 1.0f and thus 1.0f will be assigned to **vencedor**, since that’s the smallest value in the example array I wrote.

Hope this helps!