88 lines
1.6 KiB
C#
88 lines
1.6 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-04-01
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "PauseWindow" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
using UnityEngine;
|
|
|
|
namespace G.UI
|
|
{
|
|
public partial class PauseWindow : KUIWindow
|
|
{
|
|
#region Constructor
|
|
|
|
public PauseWindow()
|
|
: base(UILayer.kPopup, UIMode.kNone)
|
|
{
|
|
uiPath = "ui_common/ui_w_pause.prefab";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RegisterThis();
|
|
RefreshView();
|
|
}
|
|
|
|
public override void OnDisable()
|
|
{
|
|
UnregisterThis();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Mediator
|
|
|
|
readonly int[] _notificationInterests = new int[]
|
|
{
|
|
GlobalDefine.EVENT_PLAY_AD_SUCCESS ,
|
|
GlobalDefine.EVENT_PLAY_AD_ERROR,
|
|
GlobalDefine.EVENT_PLAY_AD_SKIP ,
|
|
GlobalDefine.EVENT_AD_LOADING ,
|
|
GlobalDefine.EVENT_AD_LOAD_SUCCESS ,
|
|
GlobalDefine.EVENT_AD_LOAD_ERROR ,
|
|
};
|
|
|
|
public override System.Collections.Generic.IList<int> ListNotificationInterests()
|
|
{
|
|
return _notificationInterests;
|
|
}
|
|
|
|
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
|
|
{
|
|
if (notification.Body is string status)
|
|
{
|
|
ShowStatus(status);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|