예제 #1
0
 public void OnSkillLevelUpClick(int skill, int needMoney)
 {
     if (Common.PaymentCheck(ref User.coin, needMoney))
     {
         SoundManager.instance.EffectSourcePlay(AudioClipManager.instance.ui_pop);
         EffectManager.SkillUpgradeEffect(skillImage.transform);
         SkillSystem.SetObtainSkill(skill);
         RefreshHeroStatusEquipmentPanel();
     }
     else
     {
         UI_Manager.instance.ShowAlert(UI_Manager.PopupAlertTYPE.coin, needMoney);
     }
 }
예제 #2
0
 public void OnClickSkillUpgrate(int index, int skillId, int payment)
 {
     if (Common.PaymentCheck(ref User.blackCrystal, payment))
     {
         SoundManager.instance.EffectSourcePlay(AudioClipManager.instance.ui_pop);
         SkillSystem.SetObtainSkill(skillId);
         EffectManager.SkillUpgradeEffect(ScrollContentView.transform.GetChild(index).GetChild(0).transform);
         RefreshUI();
     }
     else
     {
         UI_Manager.instance.ShowAlert(UI_Manager.PopupAlertTYPE.blackCrystal, payment);
     }
 }
예제 #3
0
    public static void SetObtainHero(int id)
    {
        HeroData obtainHero = heros.Find(h => h.id == id || h.id.Equals(id));

        if (obtainHero != null)
        {
            HeroDatabase.AddUser(id);
            userHeros.Add(obtainHero);
            SkillSystem.SetObtainSkill(obtainHero.skill);
            MissionSystem.AddClearPoint(MissionSystem.ClearType.CollectHero);
            Debugging.Log(id + " 영웅 획득 성공!");
        }
        else
        {
            Debugging.LogError("획득할 영웅을 찾지못함 >> " + id);
        }
    }