10006_YanCheng_Metrology/Assets/Scripts/MobileAttach10002_2002.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 MobileAttach10002_2002 : 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供电所人员到xxx地方开展直接接入式电能计量装置装拆及验收标准化作业。", 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, "好的","客户",0, (intTemp) =>
{
ScoreManager.instance.Check(triggerName, "工作预约完成");
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true);
GameManager.UIMgr.HidePanel<UI_CustomSessionPanel>();
});
});
}
}
}