Ejemplo n.º 1
0
    private void PlaceIngredient(Ingredient ing)
    {
        for (int i = 0; i < ings.Length; i++)
        {
            if (ings[i] == null)
            {
                ings[i] = ing;
                break;
            }
        }
        ing.GetCurrentPlayer().SetCurrentItem(null);
        ing.SetCurrentPlayer(null);
        ing.GetComponent <Collider>().enabled = false;
        DisplayIngredients();

        ItemUtils.CreateBullet(ItemUtils.CraftBullet(this), transform.position + new Vector3(0, 8f, 0));
    }