Пример #1
0
    public void HighlightOnce()
    {
        UIBHighlight component = base.GetComponent <UIBHighlight>();

        if (component != null)
        {
            component.HighlightOnce();
        }
    }
Пример #2
0
    public void Select(bool selected)
    {
        UIBHighlight component = base.GetComponent <UIBHighlight>();

        if (component != null)
        {
            component.AlwaysOver = selected;
            if (selected)
            {
                this.EnableFancyHighlight(false);
            }
        }
    }
    protected override void Awake()
    {
        base.Awake();
        UIBHighlight component = base.GetComponent <UIBHighlight>();

        if (component == null)
        {
            component = base.gameObject.AddComponent <UIBHighlight>();
        }
        this.m_UIBHighlight = component;
        if (this.m_UIBHighlight != null)
        {
            this.m_UIBHighlight.m_MouseOverHighlight   = this.m_Highlight;
            this.m_UIBHighlight.m_HideMouseOverOnPress = false;
        }
    }
    public void SetHighlight(bool enable)
    {
        UIBHighlightStateControl component = base.GetComponent <UIBHighlightStateControl>();

        if (component != null)
        {
            if (this.m_Glow)
            {
                component.Select(true, true);
            }
            else
            {
                component.Select(enable, false);
            }
        }
        UIBHighlight highlight = base.GetComponent <UIBHighlight>();

        if (highlight != null)
        {
            highlight.AlwaysOver = enable;
        }
    }