origin_10006_YanCheng_Metro.../Assets/Scripts/MobileAttach10002_2002.cs

41 lines
1.6 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, "您好,我是 XX 供电公司工作人员。请问您是 XX地址的客户 X 先生/女士吗?我们在系统上监测到贵户的电表数据没有上传,计划在 XX 日 XX 时至 XX 时派人到您那排查问题,请问您是否可以留人配合我们工作?", 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>();
});
});
}
}
}