Exemplo n.º 1
0
        public void PickedReward(Constants.RewardTypes type, object reward)
        {
            switch (type)
            {
            case Constants.RewardTypes.Skill:
                unitManager.player.AddSkill((SkillStats)reward);
                break;

            case Constants.RewardTypes.Gear:
                Gear newGear = (Gear)reward;
                unitManager.player.AddGear(newGear.Slot, newGear);
                break;

            case Constants.RewardTypes.Item:
                unitManager.player.AddItem((ItemStats)reward);
                break;
            }
            rewardPanel.SetActive(false);
            gameManager.StartRound();
        }