// Update is called once per frame void Update() { if (ballHasLeftBox) { UpdatePinCountUIDisplay(); if (pinManager.CheckPinsHaveSettled()) { ballHasLeftBox = false; PinsHaveSettled(); } } }