2024-10-25 15:35:39 +08:00
|
|
|
using System.Collections.Generic;
|
2024-10-25 16:51:34 +08:00
|
|
|
using System.StateSystem;
|
|
|
|
|
using Framework.UI;
|
2024-10-25 15:35:39 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using IcecreamView;
|
2024-10-25 16:51:34 +08:00
|
|
|
using StateSystem;
|
2024-10-25 15:35:39 +08:00
|
|
|
|
|
|
|
|
namespace Views{
|
|
|
|
|
|
|
|
|
|
public class InitTipPanel : IcecreamView.IC_AbstractModule
|
|
|
|
|
{
|
|
|
|
|
[SerializeField] private Button _button;
|
|
|
|
|
public override void OnOpenView(IC_ViewData parameters)
|
|
|
|
|
{
|
2024-10-25 16:51:34 +08:00
|
|
|
this._button.onClick.AddListener (() =>
|
|
|
|
|
{
|
|
|
|
|
UIManager.Instance.OpenLoading (() =>
|
|
|
|
|
{
|
|
|
|
|
this.ViewConnector.CloseView ();
|
|
|
|
|
GameStateManager.Instance.OpenState (GameGlobalState.GameHome);
|
|
|
|
|
});
|
|
|
|
|
});
|
2024-10-25 15:35:39 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnCloseView()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|