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