Returns largest of two or more values.
// prints 2.4 print(Mathf.Max(1.2, 2.4));
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { print(Mathf.Max(1.2F, 2.4F)); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: print(Mathf.Max(1.2F, 2.4F))
Returns the largest of two or more values.
// prints 2 print(Mathf.Max(1, 2));
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { print(Mathf.Max(1, 2)); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: print(Mathf.Max(1, 2))