Cannot modify the return value because it is not a variable

前端 未结 7 1738
庸人自扰
庸人自扰 2020-12-11 19:27

I have a class called BaseRobot:

  var robot2 = new BaseRobot(0, 0, 0);
  private Point mHome;
  public Point Home
  {
      get { return mHome;         


        
7条回答
  •  失恋的感觉
    2020-12-11 19:53

    Its a wil guess , but the property X and Y are probably only getters, like Your Home property.

    Is there a function in your robot class to move the position?? Use that. if not provide full example please

提交回复
热议问题