Replace System.Math by UnityEngine.Mathf