unity get sign of number code example
Example: unity get sign of number
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Debug.Log(Mathf.Sign(-10));
Debug.Log(Mathf.Sign(10));
}
}
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Debug.Log(Mathf.Sign(-10));
Debug.Log(Mathf.Sign(10));
}
}