unity find the largest number code example Example: unity how to find the largest value out of 2 numbers // prints 2 print(Mathf.Max(1f, 2f));