public static SetXY ( this transform, float x, float y ) : void | ||
transform | this | |
x | float | |
y | float | |
return | void |
public static void SetXY(this Transform transform, float x, float y)
{
transform.position = new Vector3(x, y, transform.position.z);
}