public void OnclickAction_skill(SkillDBData _onclickSkill) { var saveddb = SaveDataController.Instance.GetDB_static <SkillDB>().GetDataList(); var data = saveddb.Where(x => x._Data._serchId == _onclickSkill._Data._serchId).First(); UIController.Instance.SetFlashData("command", data._Data); }
UnityEvent CreateClickEvent(SkillDBData data) { UnityEvent ev = new UnityEvent(); ev.AddListener(() => UIController.Instance.SetFlashData("select_item", data)); ev.AddListener(() => _MyUIBase.AddUI(_nextUIBase)); return(ev); }
public void AddSkill(SkillDBData data) { if (_mySkillList.Contains(data)) { return; } _mySkillList.Add(data); }
private UnityEvent CreateClickEvent(SkillDBData data) { UnityEvent ue = new UnityEvent(); ue.AddListener(() => { ClickNextUIEvent(data); }); return(ue); }
private Action CreateCursorEvent(SkillDBData data) { Action ue = () => { _textPannel.SetActive(true); var information = BattleCommandDataFormatter.Format(data._Data, data._Data._skillName); setumeiText.text = information; }; return(ue); }
public SkillCode(TextCovertedData data) { var input = data._data.Split(','); var playerId = input[0]; var skillid = input[1]; var db_player = SaveDataController.Instance.GetDB_var <PlayerDB, SavedDBData_player>(); targetPlayer = db_player.Where(x => x._serchId == playerId).First(); var db_skill = SaveDataController.Instance.GetDB_static <SkillDB>()._dataList; targetSkill = db_skill.Where(x => x._serchId == skillid).First(); }
public LevelSkillData(int level, SkillDBData targetSkill) { _level = level; _targetSkill = targetSkill; }
void ClickNextUIEvent(SkillDBData data) { UIController.Instance.SetFlashData("command", data); _MyUIBase.AddUI(_targetSelectUI); }