Example #1
0
    private void MergeItems()
    {
        level++;
        int i = (int)itemType;

        image.sprite = inventoryController.ChangeSprite(itemType, level);
        if (level == 3)
        {
            Destroy(gameObject, 1.5f);
            inventoryController.AddScore();
        }
    }