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

77 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-12-16
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "LevelUpBox.View" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
///
/// </summary>
partial class LevelUpBox
{
#region Field
[KUIFlag]
#pragma warning disable CS0649 // 从未对字段“LevelUpBox._btnClose”赋值字段将一直保持其默认值 null
Button _btnClose;
#pragma warning restore CS0649 // 从未对字段“LevelUpBox._btnClose”赋值字段将一直保持其默认值 null
[KUIFlag]
#pragma warning disable CS0649 // 从未对字段“LevelUpBox._tmpLastLevel”赋值字段将一直保持其默认值 null
TextMeshProUGUI _tmpLastLevel;
#pragma warning restore CS0649 // 从未对字段“LevelUpBox._tmpLastLevel”赋值字段将一直保持其默认值 null
[KUIFlag]
#pragma warning disable CS0649 // 从未对字段“LevelUpBox._tmpCurrLevel”赋值字段将一直保持其默认值 null
TextMeshProUGUI _tmpCurrLevel;
#pragma warning restore CS0649 // 从未对字段“LevelUpBox._tmpCurrLevel”赋值字段将一直保持其默认值 null
#endregion
#region Method
/// <summary>
///
/// </summary>
public void InitView()
{
SetViewData();
_btnClose.onClick.AddListener(this.OnCloseBtnClick);
}
/// <summary>
///
/// </summary>
public void RefreshView()
{
//var grade = PlayerProxy.Instance.grade;
//_tmpLastLevel.text = (grade - 1).ToString();
//_tmpCurrLevel.text = grade.ToString();
}
/// <summary>
///
/// </summary>
public void UpdateView()
{
}
private void OnCloseBtnClick()
{
SoundProxy.PlayFxAsync(GlobalDefine.BUTTON_CLICK_SOUND);
CloseWindow(this);
}
#endregion
}
}