private void OnValidate() { if (Highlighter == this) { Highlighter = null; Debug.LogError("LabeledFlashingHighligter cannot be set to self."); } }
private void OnValidate() { if (ParentHighlighter == null || Highlighter == null) { Debug.LogError("Both highlighters cannot be null."); } if (Highlighter == this) { Highlighter = null; Debug.LogError("DualSelectionHighlighter cannot be set to self."); } if (ParentHighlighter == this) { Debug.LogError("DualSelectionHighlighter cannot be set to self."); } if (ParentHighlighter == Highlighter) { Debug.LogError("Parent highlighter cannot be the same as the current highlighter."); } }