CultivationOfBrewing-2/Assets/Scripts/Project/Objects/Other/MobileAttach10002_2002.cs

48 lines
2.0 KiB
C#
Raw Permalink 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) =>
{
//自己说
GameManager.UIMgr.ShowPanel<UI_PlayerSessionPanel>(E_UI_Layer.Mid, (panel) =>
{
panel.Init(triggerName, "好的,我们将在 XX 日 XX 时至XX 时为您更换电能表。谢谢您的配合,再见。", (str) =>
{
ScoreManager.instance.Check(triggerName, "工作预约完成");
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true);
GameManager.UIMgr.HidePanel<UI_CustomSessionPanel>();
}, 0);
});
});
});
}
}
}