更新至unity6并且更改Scriptable完成
This commit is contained in:
@@ -24,7 +24,7 @@ namespace DevelopersHub.ProceduralTilemapGenerator2D.Tools
|
||||
{
|
||||
float x = Input.GetAxis("Horizontal");
|
||||
float y = Input.GetAxis("Vertical");
|
||||
_rigidbody.velocity = new Vector2(x, y) * _moveSpeed;
|
||||
_rigidbody.linearVelocity = new Vector2(x, y) * _moveSpeed;
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
|
||||
Reference in New Issue
Block a user