示例#1
0
    protected virtual void OpenLootBox()
    {
        LootData lootData = lootBox.GetLoot();

        switch (lootData.lootType)
        {
        case LootType.Diamonds:
            DataManager.diamondsCount += lootData.count;
            break;

        case LootType.Lives:
            DataManager.livesCount += lootData.count;
            break;
        }

        rewardPanel.Open(lootData);

        OnOpen();
    }
示例#2
0
    public void OpenLootBox(LootBox lootBox)
    {
        LootData loot = lootBox.GetLoot();

        Debug.Log(loot);
    }