private void EnableFancyHighlight(bool enable) { UIBHighlightStateControl component = base.GetComponent <UIBHighlightStateControl>(); if (component != null) { component.Select(enable, false); } }
public void SetNewGlow(bool enable) { this.m_Glow = enable; UIBHighlightStateControl component = base.GetComponent <UIBHighlightStateControl>(); if (component != null) { component.Select(enable, true); } }
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; } }