Beispiel #1
0
    /// <summary>
    /// 开启闪烁
    /// </summary>
    /// <param name="flashColor"></param>
    /// <param name="frequency">Flashing frequency (times per second)</param>
    public void FlashingOn(Color flashColor, float frequency)
    {
        bool isbool = MonitorRangeManager.IsBelongtoCurrentDep(depNode);

        if (isbool)
        {
            SetRendererEnable(true);
        }
        Highlighter h          = gameObject.AddMissingComponent <Highlighter>();
        Color       colorStart = flashColor;
        Color       colorEnd   = new Color(colorStart.r, colorStart.g, colorStart.b, 0);

        h.FlashingOn(colorStart, colorEnd, frequency);
    }