Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Bola"))
     {
         collision.GetComponent <LerpMovement>().StopLerp();
         rampManager.setEnabled(true);
         GameObject.Find("Player").GetComponent <PlayerController>().setCanUp(true);
     }
 }
Beispiel #2
0
 public void desactivaRampas()
 {
     servedBola = true;
     bullEyeManager.SetAllCollidersEyeBull(true);
     lRamp.setEnabled(false);
     rRamp.setEnabled(false);
     lCloser.desactiva(false);
     rCloser.desactiva(false);
 }