Vector2.Set error use
public void Set(float new_x, float new_y);
说明:设置已经存在向量的 x, y值
Vector2 one = Vector2.zero
Vector2 two
{
get
{
return one;
}
set
{
one.Set(value.x, value.y);
}
}
two.Set(1,1);// bug..... this will call two's get function... then return a new vector copy from one...
if two has not get and set function, this work good
if use like this two = Vector2.zero, this work good
(c# fuck bug) Vector2 is a value type....

浙公网安备 33010602011771号