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

56 lines
1.2 KiB
C#

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-11-25
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "VersionGuideBox.View" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
using UnityEngine;
using UnityEngine.UI;
/// <summary>
///
/// </summary>
partial class VersionGuideBox
{
#region Field
#pragma warning disable CS0649 // 从未对字段赋值,字段将一直保持其默认值 null
#pragma warning restore CS0649 // 从未对字段赋值,字段将一直保持其默认值 null
#endregion
#region Method
/// <summary>
///
/// </summary>
public void InitView()
{
gameObject.GetComponent<Button>().onClick.AddListener(this.OnClick);
}
/// <summary>
///
/// </summary>
public void RefreshView()
{
}
void OnClick()
{
DestroyWindow(this);
PlayerPrefs.SetString("version_guide", CURRENT_VERSION);
PlayerPrefs.Save();
}
#endregion
}
}