private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Car")) { if (AIScript = other.gameObject.GetComponent <AIController>()) { //AIScript.currentPowerup = null; } if (CarScript = other.gameObject.GetComponent <CarController>()) { CarScript.GoFlying(); } } }