This commit is contained in:
parent
93f2b5ad2c
commit
9d731799cb
|
|
@ -1,7 +1,6 @@
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Unity.VisualScripting.Antlr3.Runtime;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -105,12 +105,15 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
|
||||||
|
|
||||||
public void OnCheckSubProcess(bool ifdestroy = true)
|
public void OnCheckSubProcess(bool ifdestroy = true)
|
||||||
{
|
{
|
||||||
if (tMDTips != null)
|
if (currentTool != null)
|
||||||
tMDTips.gameObject.SetActive(false);
|
{
|
||||||
if (ifdestroy)
|
if (tMDTips != null)
|
||||||
Destroy(currentTool);
|
tMDTips.gameObject.SetActive(false);
|
||||||
currentTool = null;
|
if (ifdestroy)
|
||||||
GameManager.EventMgr.EventTrigger<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, null);
|
DestroyImmediate(currentTool);
|
||||||
|
currentTool = null;
|
||||||
|
GameManager.EventMgr.EventTrigger<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,9 @@ public class UI_SubProcessItem : BaseItem
|
||||||
GameManager.ProcessMgr.HandoverProcess(processID, subProcessID, subProcessStepID);
|
GameManager.ProcessMgr.HandoverProcess(processID, subProcessID, subProcessStepID);
|
||||||
//ÖØÖÃÎïÌå
|
//ÖØÖÃÎïÌå
|
||||||
StepStateControl.instance.InvokeInitStepState(GameManager.Instance.systemId, GameManager.ProcessMgr.d_Scheme.id, subProcessID);
|
StepStateControl.instance.InvokeInitStepState(GameManager.Instance.systemId, GameManager.ProcessMgr.d_Scheme.id, subProcessID);
|
||||||
|
//通知ui高亮
|
||||||
GameManager.EventMgr.EventTrigger<int>(Enum_EventType.SwitchSubProcess, subProcessID);
|
GameManager.EventMgr.EventTrigger<int>(Enum_EventType.SwitchSubProcess, subProcessID);
|
||||||
//Debug.LogError(ProcessManager.Instance.subProcessStepTriggerID);
|
//通知物体高亮
|
||||||
GameManager.EventMgr.EventTrigger<string>(Enum_EventType.SwitchSubProcessStepTriggerID, ProcessManager.Instance.subProcessStepTriggerID);
|
GameManager.EventMgr.EventTrigger<string>(Enum_EventType.SwitchSubProcessStepTriggerID, ProcessManager.Instance.subProcessStepTriggerID);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue