📅  最后修改于: 2022-03-11 14:49:16.287000             🧑  作者: Mango
//put this in update method and disable rigidbody2d (gravity)
void Update()
{
transform.position += (target - transform.position).normalized * movementSpeed * Time.deltaTime;
}