// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-01-03 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using System.Collections.Generic; using PureMVC.Interfaces; namespace G.UI { public partial class MissionWindow : KUIWindow { #region Constructor public MissionWindow() : base(UILayer.kFloat, UIMode.kNone) { uiPath = "ui_w_mission"; } #endregion #region Method readonly int[] _listNotificationInterests = new int[] { GlobalDefine.EVENT_MISSION_CHANGED, }; public override IList ListNotificationInterests() { return _listNotificationInterests; } public override void HandleNotification(INotification notification) { if (notification.Name == GlobalDefine.EVENT_MISSION_CHANGED) { ShowPage(_pageIndex, true); } } #endregion #region Unity /// /// /// public override void Awake() { InitView(); } /// /// /// public override void OnEnable() { RegisterThis(); RefreshView(); } public override void OnDisable() { UnregisterThis(); } /// /// /// public override void Update() { UpdateView(); } /// /// /// public override void UpdatePerSecond() { } #endregion } }