// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-04-01
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
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
///
///
///
public override void Awake()
{
InitView();
}
///
///
///
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 ListNotificationInterests()
{
return _notificationInterests;
}
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
{
if (notification.Body is string status)
{
ShowStatus(status);
}
}
#endregion
}
}