// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-03-26 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** 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 /// /// /// public override void Awake() { InitView(); } /// /// /// public override void OnEnable() { if (this.data is string va) { if (va == "tiger") { _isTiger = true; } } RefreshView(); PostNotification(GlobalDefine.EVENT_WINDOW_OPENED, null, "PetPanel"); //GetWindow().ShowTop(201); } public override void OnDisable() { //GetWindow().ShowTop(0); } public override void UpdatePerSecond() { UpdateView(); } #endregion } }