void OnTriggerEnter(Collider col) { if (col.tag == "Player") { if (ballController) { ballController.BarrelWasHit(); } } }