Пример #1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     bowl = null;
 }
Пример #2
0
    //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>();
    }