95 lines
1.6 KiB
C#
95 lines
1.6 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-01-03
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "MissionWindow" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
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<int> ListNotificationInterests()
|
|
{
|
|
return _listNotificationInterests;
|
|
}
|
|
|
|
public override void HandleNotification(INotification notification)
|
|
{
|
|
if (notification.Name == GlobalDefine.EVENT_MISSION_CHANGED)
|
|
{
|
|
ShowPage(_pageIndex, true);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RegisterThis();
|
|
RefreshView();
|
|
}
|
|
|
|
public override void OnDisable()
|
|
{
|
|
UnregisterThis();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Update()
|
|
{
|
|
UpdateView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void UpdatePerSecond()
|
|
{
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|