OnTriggerExit2D()

private void OnTriggerExit2D(Collider2D other)
    {
        toDestroy = null;
        if (other.gameObject.name != "World")
        {
            pickUpCollided--;
        }
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *