办公室对话框
This commit is contained in:
parent
9f70a7287f
commit
779949699e
File diff suppressed because one or more lines are too long
|
|
@ -1108,6 +1108,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 81d10e92b80f9094aa14ba23a018df9c, type: 3}
|
m_Script: {fileID: 11500000, guid: 81d10e92b80f9094aa14ba23a018df9c, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
TypeTime: 0.1
|
||||||
--- !u!1 &7053944223901380910
|
--- !u!1 &7053944223901380910
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ public class MobileController : PermanentTriggerBase
|
||||||
{
|
{
|
||||||
public int downIndex = 0;
|
public int downIndex = 0;
|
||||||
|
|
||||||
|
|
||||||
protected override void OnAwake()
|
protected override void OnAwake()
|
||||||
{
|
{
|
||||||
base.OnAwake();
|
base.OnAwake();
|
||||||
|
|
@ -35,10 +36,16 @@ public class MobileController : PermanentTriggerBase
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, false) == 0)
|
||||||
GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId);
|
{
|
||||||
_highlight.highlighted = false;
|
GameManager.UIMgr.ShowPanel<UI_SessionPanel>(E_UI_Layer.Mid, (panel) =>
|
||||||
downIndex = 0;
|
{
|
||||||
|
panel.Init(triggerID);
|
||||||
|
});
|
||||||
|
//GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId);
|
||||||
|
_highlight.highlighted = false;
|
||||||
|
downIndex ++;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
//case 2:
|
//case 2:
|
||||||
// if (GameManager.ProcessMgr.CheckSubProcessSteps(4003))
|
// if (GameManager.ProcessMgr.CheckSubProcessSteps(4003))
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ using UnityEngine.UI;
|
||||||
|
|
||||||
public class UI_SessionPanel : BasePanel
|
public class UI_SessionPanel : BasePanel
|
||||||
{
|
{
|
||||||
|
private int triggerID;
|
||||||
public float TypeTime =0.1f;
|
public float TypeTime =0.1f;
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
|
@ -13,10 +14,11 @@ public class UI_SessionPanel : BasePanel
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init(int triggerID)
|
||||||
{
|
{
|
||||||
//GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员,到xxx地方开展经互感器接入式低压电能计量装置安装作业。";//在开始时给content赋值
|
this.triggerID = triggerID;
|
||||||
StartCoroutine(Typing(GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员,到xxx地方开展经互感器接入式低压电能计量装置安装作业。"));
|
|
||||||
|
GetControl<TextMeshProUGUI>("PlayerText_DialogBox").text = "我是xxx供电所人员,到xxx地方开展经互感器接入式低压电能计量装置安装作业。";
|
||||||
}
|
}
|
||||||
public override void ShowMe()
|
public override void ShowMe()
|
||||||
{
|
{
|
||||||
|
|
@ -55,7 +57,11 @@ public class UI_SessionPanel : BasePanel
|
||||||
GetControl<TextMeshProUGUI>("ClientText_DialogBox").text = "好的";
|
GetControl<TextMeshProUGUI>("ClientText_DialogBox").text = "好的";
|
||||||
break;
|
break;
|
||||||
case "ClientContinueBtn":
|
case "ClientContinueBtn":
|
||||||
this.gameObject.SetActive(false);
|
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, true) == 0)
|
||||||
|
{
|
||||||
|
GameManager.UIMgr.HidePanel<UI_SessionPanel>();
|
||||||
|
//this.gameObject.SetActive(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
//case "CloseBtn":
|
//case "CloseBtn":
|
||||||
// this.gameObject.SetActive(false);
|
// this.gameObject.SetActive(false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue