常用方法
常用方法
常用方法
常用方法
public override void Move(float vertical, float horizontal) { _velocityZ = vertical * _moveSpeed; Rotate(vertical); var offset = _velocityZ * Time.fixedDeltaTime; Translate(new Vector3(0f, 0f, offset)); AnimationProperties.moveDirection = Mathf.Abs(vertical); if (!vertical.AlmostZero()) { _prevInput = vertical; } }