10006_YanCheng_Metrology/Assets/Scripts/4001/MobileAttach10004_4001.cs

41 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MobileAttach10004_4001 : MonoBehaviour
{
//public void OnReceiveTask(string triggerName)
//{
// if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0)
// {
// GameManager.UIMgr.ShowPanel<UI_ReceiveTaskPanel>(E_UI_Layer.Mid, (panel) =>
// {
// panel.Init(triggerName, Input.mousePosition);
// });
// }
//}
public void OnDialogue(string triggerName)
{
GameManager.UIMgr.ShowPanel<UI_PlayerSessionPanel>(E_UI_Layer.Mid, (panel) =>
{
panel.Init(triggerName, "您好主站初步排查xxx客户采集故障导致9月25日没有抄表数据。", PlayerTalk, 0);
});
}
private void PlayerTalk(string triggerName)
{
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0)
{
GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) =>
{
panel.Init(triggerName, "好的", "班组成员", 1, (intTemp) =>
{
ScoreManager.instance.Check(triggerName, "线损异常类型研判完成");
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true);
GameManager.UIMgr.HidePanel<UI_CustomSessionPanel>();
});
});
}
}
}