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