public void Move(Vector3 moveDirection) { transform.Translate(transform.right * moveDirection.x * _characterData.GetSpeed()); transform.Translate(transform.up * moveDirection.y * _characterData.GetSpeed()); }
public void Move(Vector3 moveDirection) { moveDirection = moveDirection.normalized; transform.Translate(moveDirection * _characterData.GetSpeed()); }