This commit is contained in:
陈向学 2024-09-05 19:31:08 +08:00
parent 93f2b5ad2c
commit 9d731799cb
3 changed files with 11 additions and 8 deletions

View File

@ -1,7 +1,6 @@
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting.Antlr3.Runtime;
using UnityEngine;
/// <summary>

View File

@ -105,12 +105,15 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
public void OnCheckSubProcess(bool ifdestroy = true)
{
if (tMDTips != null)
tMDTips.gameObject.SetActive(false);
if (ifdestroy)
Destroy(currentTool);
currentTool = null;
GameManager.EventMgr.EventTrigger<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, null);
if (currentTool != null)
{
if (tMDTips != null)
tMDTips.gameObject.SetActive(false);
if (ifdestroy)
DestroyImmediate(currentTool);
currentTool = null;
GameManager.EventMgr.EventTrigger<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, null);
}
}
private void OnDestroy()

View File

@ -77,8 +77,9 @@ public class UI_SubProcessItem : BaseItem
GameManager.ProcessMgr.HandoverProcess(processID, subProcessID, subProcessStepID);
//ÖØÖÃÎïÌå
StepStateControl.instance.InvokeInitStepState(GameManager.Instance.systemId, GameManager.ProcessMgr.d_Scheme.id, subProcessID);
//通知ui高亮
GameManager.EventMgr.EventTrigger<int>(Enum_EventType.SwitchSubProcess, subProcessID);
//Debug.LogError(ProcessManager.Instance.subProcessStepTriggerID);
//通知物体高亮
GameManager.EventMgr.EventTrigger<string>(Enum_EventType.SwitchSubProcessStepTriggerID, ProcessManager.Instance.subProcessStepTriggerID);
});
});