31 lines
670 B
C#
31 lines
670 B
C#
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<StepStatusOnChange>(OnStepChanged);
|
|
}
|
|
|
|
private void OnStepChanged(StepStatusOnChange change)
|
|
{
|
|
var effect = GetComponent<HighlightEffect>();
|
|
if (effect != null)
|
|
{
|
|
effect.highlighted = false;
|
|
}
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
TypeEventSystem.Global.UnRegister<StepStatusOnChange>(OnStepChanged);
|
|
}
|
|
}
|