private void Awake() { _paddleMovement = GetComponent <PaddleMovement>(); _rigidbody = GetComponent <Rigidbody>(); }
public void OnAxisInput(Vector2 axis) { axis.y = 0.0f; PaddleMovement.AccelerateInDirection(axis, Time.deltaTime); }