64 lines
1.3 KiB
C#
64 lines
1.3 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-11-25
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "VersionGuideBox" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
using UnityEngine;
|
|
|
|
namespace G.UI
|
|
{
|
|
public partial class VersionGuideBox : KUIWindow
|
|
{
|
|
const string CURRENT_VERSION = "0.12.1";
|
|
public static void Show()
|
|
{
|
|
if (LevelProxy.Instance.currentCompletedLevel >= 10 && CURRENT_VERSION != PlayerPrefs.GetString("version_guide"))
|
|
{
|
|
OpenWindow<VersionGuideBox>();
|
|
//PlayerPrefs.SetString("version_guide", CURRENT_VERSION);
|
|
//PlayerPrefs.Save();
|
|
}
|
|
}
|
|
|
|
#region Constructor
|
|
|
|
public VersionGuideBox()
|
|
: base(UILayer.kGuide, UIMode.kNone)
|
|
{
|
|
uiPath = "ui_w_version_guide";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RefreshView();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|