Esempio n. 1
0
    public void showDetailPanel(Loot l)
    {
        this.loot = l;
        for (int i = 0; i < loots.Length; i++)
        {
            loots [i].unlockLootGesture(false);
        }

        acceptButton.onClick.RemoveAllListeners();

        switch (loot.lootType)
        {
        case 0:
            detailPanel.showLootDetail(loot.lootType, loot.spriteRenderer.sprite);
            break;

        case 1:
            detailPanel.showLootDetail(loot.lootType, loot.spriteRenderer.sprite);
            break;

        case 2:
            detailPanel.showGambleSkillDetail(loot.gambleSkillType, loot.spriteRenderer.sprite);
            break;

        case 3:
            //detailPanel.showDiceDetail (loot.dice);
            freeAllLoots();
            break;

        default:
            Debug.Log("LootManager - showConfirmPanel Error");
            break;
        }
    }
 public void showSkillDetailPanel(int index)
 {
     if (currentState == State.BattleState.SelectBattleSkill)
     {
         textManager.showBattleSkillDetail(currentCharacter.unitName, index, battleSkill [index].sprite);
         lockSkillButton(true);
     }
     else if (currentState == State.BattleState.SelectGambleSkill)
     {
         textManager.showGambleSkillDetail(index, gambleSkill [index].sprite);
         lockSkillButton(true);
     }
 }