using HighlightPlus; using QFramework; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using static OperationController; public class HighLightOnStepChanged : MonoBehaviour { private void Awake() { TypeEventSystem.Global.Register(OnStepChanged); } private void OnStepChanged(StepStatusOnChange change) { var effect = GetComponent(); if (effect != null) { effect.highlighted = false; } } private void OnDestroy() { TypeEventSystem.Global.UnRegister(OnStepChanged); } }