public static ISkillTable GetSkillTpl(int id) { ISkillTable tpl = null; tpl = CSTable.StaticDataManager.SkillActive[id]; if (tpl == null) { tpl = CSTable.StaticDataManager.SkillPassive[id]; } return(tpl); }
private void Start() { if (player == null && GameCtrl.PlayerUnit != null) { player = GameCtrl.PlayerUnit; skillTable = player.SkillTable; } GameCtrl.PlayerUnitChangeEvent.AddListener(UpdatePlayer); EventMgr.KeyDownEvent.AddListener(SwitchCellListener); EventMgr.MouseButtonDownEvent.AddListener(CellMouseBTNDown); EventMgr.MouseButtonUpEvent.AddListener(CellMouseBTNUp); }
private void UpdatePlayer(Unit player) { this.player = player; skillTable = player.SkillTable; }