/// <summary> /// 3.터치 /// </summary> public void Check_Next() { PopupManager.Open_Popup(NextPopup); txt_Next.DOFade(0, 2).SetLoops(-1, LoopType.Yoyo); Player_stat.Set_Player_Stat(); }
public void Buy() { Debug.Log(total); if (BackEndDataManager.instance.Get_Item((Item_Type)skill.price_type) >= total) { UiManager.instance.Check_Progress_Reward(Progress_Reward_Type.skill_upgrade, (int)Skill_s.skill_lv); Game_info_.Set_Game_Info(Game_Info_Type.skill_upgrade, (int)Skill_s.skill_lv); Quest_.Check_Daily_Quest(Daily_Quest_Type.skill_upgrade, (int)Skill_s.skill_lv); Skill_info skill_Info = BackEndDataManager.instance.Skill_Data.skill_Info.Find(x => x.int_num.Equals(skill.num)); if (skill_Info == null) { skill_Info = new Skill_info { int_num = skill.num, int_lv = (int)Skill_s.skill_lv }; BackEndDataManager.instance.Skill_Data.skill_Info.Add(skill_Info); } else { skill_Info.int_lv += (int)Skill_s.skill_lv; } BackEndDataManager.instance.Set_Item((Item_Type)skill.price_type, total, Calculate_Type.mius); Skill_s.Set_Skill_Val(skill_Info.int_num, skill_Info.int_lv); Player_stat.Set_Player_Stat((Ability_Type)skill.ability_type); BackEndDataManager.instance.Save_Skill_Data(); Set_Sub_Txt(); UiManager.instance.Check_Skill(); switch (skill.num) { case 0: PlayManager.instance.Start_Skill_0(); break; case 1: PlayManager.instance.Start_Skill_1(); break; case 2: PlayManager.instance.Start_Skill_2(); break; default: break; } } }