This commit is contained in:
陈向学 2024-08-27 13:25:26 +08:00
commit a49d45718e
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) => 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); tMDTips.gameObject.SetActive(false);
currentTool.transform.localEulerAngles = new Vector3(90, 0, 0); currentTool.transform.localEulerAngles = new Vector3(90, 0, 0);

View File

@ -49,7 +49,8 @@ public class UI_ToolOrMaterialsOrDeviceItem : BaseItem
Destroy(gameObject); Destroy(gameObject);
break; break;
case "iconBtn": 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>(); GameManager.UIMgr.HidePanel<UI_ToolAndMaterialPanel>();
GameObject currentTool = Instantiate(currentItem.objPrefab); GameObject currentTool = Instantiate(currentItem.objPrefab);

View File

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