Unity Clamp Circle
A very simple method that i find quite useful to have:
Returns min if value is over the max returns max if value is bellow min.
public static int ClampCircle(int p_value, int p_min, int p_max)
{
if (p_value > p_max)
{
...
edevjogos.hashnode.dev1 min read