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....

posted @ 2017-09-29 21:39  何人之名  阅读(194)  评论(0)    收藏  举报