// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-04-20 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** namespace G.UI { /// /// 装备培养 /// public partial class EquipmentWindow : KUIWindow { #region Constructor public EquipmentWindow() : base(UILayer.kFloat, UIMode.kNone) { uiPath = "ui_w_equipment"; } #endregion #region Method #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 #region Mediator private readonly int[] _notificationInterests = new int[] { GlobalDefine.EVENT_EQUIPMENT_SLOT_SELECT, GlobalDefine.EVENT_PLAYER_EQUIPMENT_CHANGED, }; public override System.Collections.Generic.IList ListNotificationInterests() { return _notificationInterests; } public override void HandleNotification(PureMVC.Interfaces.INotification notification) { if (notification.Name == GlobalDefine.EVENT_EQUIPMENT_SLOT_SELECT) { SetSelect(notification.Body as PlayerProxy.EquipmentSlotInfo); } else if (notification.Name == GlobalDefine.EVENT_PLAYER_EQUIPMENT_CHANGED) { if (notification.Type == "upgrade") { RefreshSlot(); } } } #endregion } }