📜  走向统一 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.287000             🧑  作者: Mango

代码示例4
//put this in update method and disable rigidbody2d (gravity)
void Update()
{
transform.position += (target - transform.position).normalized * movementSpeed * Time.deltaTime;
}