2025-05-18 01:04:31 +08:00

72 lines
1.3 KiB
C#

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-03-26
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "PetWindow" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
public partial class PetWindow : KUIWindow
{
#region Constructor
public PetWindow()
: base(UILayer.kFloat, UIMode.kNone)
{
uiPath = "ui_w_pet";
}
#endregion
#region Method
#endregion
#region Unity
/// <summary>
///
/// </summary>
public override void Awake()
{
InitView();
}
/// <summary>
///
/// </summary>
public override void OnEnable()
{
if (this.data is string va)
{
if (va == "tiger")
{
_isTiger = true;
}
}
RefreshView();
PostNotification(GlobalDefine.EVENT_WINDOW_OPENED, null, "PetPanel");
//GetWindow<MainWindow>().ShowTop(201);
}
public override void OnDisable()
{
//GetWindow<MainWindow>().ShowTop(0);
}
public override void UpdatePerSecond()
{
UpdateView();
}
#endregion
}
}