HAARFTE/Assets/DemoGame/GameScript/Hotfix/Procedure/Logic/体格检查Procedure.cs

45 lines
1.7 KiB
C#

using Unity.Loader;
using UnityEngine;
using UnityEngine.EventSystems;
namespace ZC
{
[Procedure(ProcedureType.体格检查Procedure)]
class Procedure : ProcedureBase
{
public override void OnEnter()
{
base.OnEnter();
ResourcesLocalComponent.Instance.LoadScene(AssetConst.Assets_DemoGame_GameRes_Scene_HuShiTaiScene_unity);
var introduceUI = (IntroduceUI)Global.UIManager.ShowUI(UIType.IntroduceUI);
introduceUI.SetData(ConstStr.,ConstStr.,IntroduceUI_Callback);
}
private void IntroduceUI_Callback()
{
Global.UIManager.HideUI(UIType.IntroduceUI);
var bigTipsUI = (BigTipsUI) Global.UIManager.ShowUI(UIType.BigTipsUI);
bigTipsUI.SetData(ConstStr.);
var binding = GameObject.FindObjectOfType<SceneGameObjectBinding>();
var gameObject = binding.GetValue("体格检查点");
var triggerEvent = gameObject.GetComponent<TriggerEvent>();
triggerEvent.SetData(PlayerMoveToPoint);
}
private void PlayerMoveToPoint()
{
Global.UIManager.HideUI(UIType.BigTipsUI);
var introduceUI = (IntroduceUI)Global.UIManager.ShowUI(UIType.IntroduceUI);
introduceUI.SetData(ConstStr.尿,ConstStr.尿,IntroduceUI1_Callback);
}
private void IntroduceUI1_Callback()
{
Global.UIManager.HideUI(UIType.IntroduceUI);
// var mIntroduceUI = (ModelDisplayUI)Global.UIManager.ShowUI(UIType.ModelDisplayUI);
}
}
}