办公室对话框

This commit is contained in:
taosuqi 2024-08-20 15:16:56 +08:00
parent 9f70a7287f
commit 779949699e
4 changed files with 23 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -1108,6 +1108,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 81d10e92b80f9094aa14ba23a018df9c, type: 3}
m_Name:
m_EditorClassIdentifier:
TypeTime: 0.1
--- !u!1 &7053944223901380910
GameObject:
m_ObjectHideFlags: 0

View File

@ -8,6 +8,7 @@ public class MobileController : PermanentTriggerBase
{
public int downIndex = 0;
protected override void OnAwake()
{
base.OnAwake();
@ -35,10 +36,16 @@ public class MobileController : PermanentTriggerBase
}
break;
case 1:
GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId);
_highlight.highlighted = false;
downIndex = 0;
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, false) == 0)
{
GameManager.UIMgr.ShowPanel<UI_SessionPanel>(E_UI_Layer.Mid, (panel) =>
{
panel.Init(triggerID);
});
//GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId);
_highlight.highlighted = false;
downIndex ++;
}
break;
//case 2:
// if (GameManager.ProcessMgr.CheckSubProcessSteps(4003))

View File

@ -5,6 +5,7 @@ using UnityEngine.UI;
public class UI_SessionPanel : BasePanel
{
private int triggerID;
public float TypeTime =0.1f;
private void Start()
{
@ -13,10 +14,11 @@ public class UI_SessionPanel : BasePanel
/// <summary>
/// 初始化
/// </summary>
public void Init()
public void Init(int triggerID)
{
//GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员到xxx地方开展经互感器接入式低压电能计量装置安装作业。";//在开始时给content赋值
StartCoroutine(Typing(GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员到xxx地方开展经互感器接入式低压电能计量装置安装作业。"));
this.triggerID = triggerID;
GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员到xxx地方开展经互感器接入式低压电能计量装置安装作业。";
}
public override void ShowMe()
{
@ -55,7 +57,11 @@ public class UI_SessionPanel : BasePanel
GetControl<TextMeshProUGUI>("ClientText_DialogBox").text = "好的";
break;
case "ClientContinueBtn":
this.gameObject.SetActive(false);
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, true) == 0)
{
GameManager.UIMgr.HidePanel<UI_SessionPanel>();
//this.gameObject.SetActive(false);
}
break;
//case "CloseBtn":
// this.gameObject.SetActive(false);