43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.Tracing;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class UI_TipsForPracticePanel : BasePanel
|
|
{
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
}
|
|
public override void ShowMe()
|
|
{
|
|
base.ShowMe();
|
|
}
|
|
public override void HideMe()
|
|
{
|
|
base.HideMe();
|
|
}
|
|
protected override void OnClick(string btnName)
|
|
{
|
|
switch (btnName)
|
|
{
|
|
case "Button":
|
|
Bootstrap.Instance.uiManager.ShowPanel<UI_LoadingPanel>(this, E_UI_Layer.System, (panel) =>
|
|
{
|
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.1f);
|
|
Bootstrap.Instance.scenesManager.LoadSceneAsyn("LiveScene", () =>
|
|
{
|
|
Bootstrap.Instance.uiManager.HidePanel<UI_BGPanel>();
|
|
Bootstrap.Instance.uiManager.HidePanel<UI_TipsForPracticePanel>();
|
|
Debug.Log("UI_SelectModePanel");
|
|
|
|
});
|
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 2f);
|
|
});
|
|
|
|
break;
|
|
}
|
|
}
|
|
}
|