The compiler is dumb and just reports what it sees wrong.
Vector3 position = new Vector3 (
Vector2.ClampMagnitude(
x, // one param
oJoyPos.x - maxJoyDelta, // two param
oJoyPos.x + maxJoyDelta) // three param, mmmm...
,Vector2.ClampMagnitude(
y, // one param
oJoyPos.y - maxJoyDelta, // two param
oJoyPos.y + maxJoyDelta) // oh!! three param again
, 0);
↧