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);
    }
Example #2
0
    UnityEvent CreateClickEvent(SkillDBData data)
    {
        UnityEvent ev = new UnityEvent();

        ev.AddListener(() => UIController.Instance.SetFlashData("select_item", data));
        ev.AddListener(() => _MyUIBase.AddUI(_nextUIBase));
        return(ev);
    }
Example #3
0
 public void AddSkill(SkillDBData data)
 {
     if (_mySkillList.Contains(data))
     {
         return;
     }
     _mySkillList.Add(data);
 }
Example #4
0
    private UnityEvent CreateClickEvent(SkillDBData data)
    {
        UnityEvent ue = new UnityEvent();

        ue.AddListener(() => {
            ClickNextUIEvent(data);
        });
        return(ue);
    }
Example #5
0
    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();
    }
Example #7
0
 public LevelSkillData(int level, SkillDBData targetSkill)
 {
     _level       = level;
     _targetSkill = targetSkill;
 }
Example #8
0
 void ClickNextUIEvent(SkillDBData data)
 {
     UIController.Instance.SetFlashData("command", data);
     _MyUIBase.AddUI(_targetSelectUI);
 }