105 lines
1.8 KiB
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-06-08
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "TravelWindow" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
public partial class TravelWindow : KUIWindow
{
#region Constructor
public TravelWindow()
: base(UILayer.kFloat, UIMode.kSequenceHide)
{
uiPath = "ui_w_travel";
}
#endregion
#region Method
#endregion
#region Unity
/// <summary>
///
/// </summary>
public override void Awake()
{
InitView();
}
/// <summary>
///
/// </summary>
public override void OnEnable()
{
RegisterThis();
RefreshView();
}
/// <summary>
///
/// </summary>
public override void OnDisable()
{
UnregisterThis();
}
/// <summary>
///
/// </summary>
public override void Update()
{
UpdateView();
}
/// <summary>
///
/// </summary>
public override void UpdatePerSecond()
{
}
#endregion
#region Mediator
readonly int[] _notificationInterests = new int[]
{
GlobalDefine.EVENT_STORY_ACTION,
GlobalDefine.EVENT_STORY_FINISH
};
public override System.Collections.Generic.IList<int> ListNotificationInterests()
{
return _notificationInterests;
}
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
{
if (notification.Name == GlobalDefine.EVENT_STORY_ACTION)
{
DoStory(notification.Body as StoryAction);
}
else if (notification.Name == GlobalDefine.EVENT_STORY_FINISH)
{
//CloseWindow(this);
}
}
#endregion
}
}