在unity中出现
UnassignedReferenceException: The variable target of Moving has not been assigned.
You probably need to assign the target variable of the Moving script in the inspector.Moving.Update () (at Assets/_Tutorial/Moving.cs:13)
发现如上图中 traget 为none 把物体拉到里面进行设置就可以了