void OnTriggerEnter(Collider collider) { if (collider.gameObject.CompareTag("Ball")) { if (tableManager != null) { tableManager.BallEnterGoal(collider.gameObject, player); } } }