87 lines
1.6 KiB
C#
87 lines
1.6 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-05-01
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "AdventureBox" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
namespace G.UI
|
|
{
|
|
public partial class AdventureBox : KUIWindow
|
|
{
|
|
#region Constructor
|
|
|
|
public AdventureBox()
|
|
: base(UILayer.kFloat, UIMode.kNone)
|
|
{
|
|
uiPath = "ui_w_adventure";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="adventure"></param>
|
|
public static void ShowAdventure(ItemAdventure adventure)
|
|
{
|
|
OpenWindow<AdventureBox>(adventure);
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="adventure"></param>
|
|
/// <param name="callback"></param>
|
|
public static void ShowAdventure(ItemAdventure adventure, bool auto, Callback callback)
|
|
{
|
|
var tuple = System.Tuple.Create(adventure, auto, callback);
|
|
OpenWindow<AdventureBox>(tuple);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RefreshView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Update()
|
|
{
|
|
UpdateView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void UpdatePerSecond()
|
|
{
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|