public static float Repeat(float t, float length);
此方法相当于取模(t%length)
for (int i = -6; i <= 6; i++ ) Debug.Log(Mathf.Repeat(i, 3f));
运行测试