修改工作证逻辑

This commit is contained in:
YangHua 2024-08-27 13:24:25 +08:00
parent 227657da5c
commit ce63dea44e
5 changed files with 11 additions and 11 deletions

Binary file not shown.

View File

@ -28,7 +28,11 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
{
GameManager.UIMgr.ShowPanel<UI_PlayerSessionPanel>(E_UI_Layer.Mid, (p) =>
{
p.Init("", "您好我是xx供电公司员工这是我的工作证。现在我们要对贵户更换电能计量表", (intTemp) => { Destroy(currentTool); });
p.Init(currentTool.name, "您好我是xx供电公司员工这是我的工作证。现在我们要对贵户更换电能计量表", (intTemp) =>
{
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(intTemp, true);
Destroy(currentTool);
});
});
tMDTips.gameObject.SetActive(false);
currentTool.transform.localEulerAngles = new Vector3(90, 0, 0);

View File

@ -49,7 +49,8 @@ public class UI_ToolOrMaterialsOrDeviceItem : BaseItem
Destroy(gameObject);
break;
case "iconBtn":
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(currentItem.toolName, true) == 0)
bool isWorkCard = currentItem.toolName.Equals("¹¤×÷Ö¤") ? false : true;
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(currentItem.toolName, isWorkCard) == 0)
{
GameManager.UIMgr.HidePanel<UI_ToolAndMaterialPanel>();
GameObject currentTool = Instantiate(currentItem.objPrefab);

View File

@ -8,21 +8,16 @@ public class UI_ToolAndMaterialPanel : BasePanel
public RectTransform _content;
public UI_ToolOrMaterialsOrDeviceItem ui_TmdItem;
public void Init()
{
}
public override void ShowMe()
{
if (GameManager.RunModelMgr.ModeType == E_ModeType.Study)
GetControl<Button>("closeBtn").interactable = false;
CreatItem(E_ToolOrDeviceOrMaterials.Tool); //默认打开显示工器具
}
public override void HideMe()
{
}
private void CreatItem(E_ToolOrDeviceOrMaterials tmdTpye)