This commit is contained in:
parent
93f2b5ad2c
commit
9d731799cb
|
@ -1,7 +1,6 @@
|
|||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.VisualScripting.Antlr3.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue