Пример #1
0
    /// <summary>   /// 开启高光   /// </summary>
    /// <param name="go"></param>
    /// <param name="useRecord">是否使用记录</param>
    public static GameObject OnHightligher(this GameObject go)
    {
        HighLighter listener = HighLighter.Get(go);

        listener.SetFlash(true);
        return(go);
    }
Пример #2
0
    /// <summary>   /// 关闭高光   /// </summary>
    /// <param name="go"></param>
    public static GameObject OffHightligher(this GameObject go, bool deleteHighLighter = false)
    {
        HighLighter listener = HighLighter.Get(go);

        listener.SetFlash(false);
        if (deleteHighLighter)
        {
            UnityEngine.Object.Destroy(go.GetComponent <HighLighter>());
            UnityEngine.Object.Destroy(go.GetComponent <Highlighter>());
        }
        return(go);
    }