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(); }
public void OpenLootBox(LootBox lootBox) { LootData loot = lootBox.GetLoot(); Debug.Log(loot); }