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