58 lines
1.1 KiB
C#
58 lines
1.1 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-01-08
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "NameBox" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
using System;
|
|
namespace G.UI
|
|
{
|
|
public partial class NameBox : KUIWindow
|
|
{
|
|
public static void Show(string name, Action<string> callback)
|
|
{
|
|
var data = new Tuple<string, Action<string>>(name, callback);
|
|
OpenWindow<NameBox>(data);
|
|
}
|
|
|
|
#region Constructor
|
|
|
|
public NameBox()
|
|
: base(UILayer.kPopup, UIMode.kNone)
|
|
{
|
|
uiPath = "ui_common/ui_w_name.prefab";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RefreshView();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|