Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collider)
    {
        Ingredient ingredient = collider.gameObject.GetComponent <Ingredient>();

        if (ingredient == null)
        {
            return;
        }
        Parent.OnIngredientCaught(ingredient);
    }