private void OnTriggerExit2D(Collider2D collision) { bowl = null; }
//private IEnumerator ReleaseBall() //{ //isReleased = true; //// Waits till the ball reaches 1/4 of the slingshot and then releases the ball from the sling shot //yield return new WaitForSeconds(releasedDelay); //} private void OnTriggerEnter2D(Collider2D collision) { bowl = collision.GetComponent <SortingBin>(); }