| | |
| | | ParseConfig();
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | TaskModel.Event_TaskInformation += TaskInformationUpdate;
|
| | |
|
| | | ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
|
| | | if (skillMatch != null)
|
| | | {
|
| | | skillMatch.onSkillMatchPageUpdate += OnSkillMatchPageUpdate;
|
| | | }
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | public event Action onSkillMatchPageUpdate;
|
| | | private void OnSkillMatchPageUpdate()
|
| | | {
|
| | | if (onSkillMatchPageUpdate != null)
|
| | | {
|
| | | onSkillMatchPageUpdate();
|
| | | }
|
| | | }
|
| | |
|
| | | public List<int> GetSkillMatchs()
|
| | | {
|
| | | ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
|
| | | if (skillMatch != null)
|
| | | {
|
| | | return skillMatch.GetSkills();
|
| | | }
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | public struct PassSkillLimit
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | [XLua.CSharpCallLua]
|
| | | public interface ISkillMatch
|
| | | {
|
| | | List<int> GetSkills();
|
| | | event Action onSkillMatchPageUpdate;
|
| | | }
|
| | | }
|
| | |
|