Check out example codes for "c# unity max". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine;public class ScriptExample : MonoBehaviour
{
    void Start()
    {
        // prints 2.4
        Debug.Log(Mathf.Max(1.2f, 2.4f));
    }
}

Learn ReactJs, React Native from akashmittal.com