private void UpdateHighlightModes() { bool oldHighlightColors = highlightColors; highlightColors = ((Mode & HighlightTypes.Color) != 0); if ((oldHighlightColors == false) && (highlightColors == true)) { MyColorTransition = GetComponent <ColorTransition>(); } highlightOutline = ((Mode & HighlightTypes.Outline) != 0); if (!highlightOutline) { if (myOutlineTarget) { OutlineTarget.Remove(gameObject); } } }
private void DeHighlightOutline() { OutlineTarget.Remove(gameObject); StopTransition(); }