23 lines
583 B
C#
23 lines
583 B
C#
|
using HighlightPlus;
|
|||
|
using Unity.VisualScripting;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace ZC
|
|||
|
{
|
|||
|
public static class HighLightHelper
|
|||
|
{
|
|||
|
public static void OpenHighlight(this GameObject self)
|
|||
|
{
|
|||
|
HighlightEffect effect;
|
|||
|
effect = self.GetOrAddComponent<HighlightEffect>();
|
|||
|
effect.highlighted = true;
|
|||
|
}
|
|||
|
|
|||
|
public static void CloseHighlight(this GameObject self)
|
|||
|
{
|
|||
|
HighlightEffect effect;
|
|||
|
effect = self.GetComponent<HighlightEffect>();
|
|||
|
effect.highlighted = false;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|