private void CreateNone() { var label = CreateElement(NonePrefab); label.Text = "- none -"; _lastNone = label; }
private void RemoveLastNone() { if (_lastNone != null) { _elements.Remove(_lastNone); DestroyImmediate(_lastNone.gameObject); } _lastNone = null; }
public REElement CreateSegment(string text) { _lastNone = null; var segmentText = CreateElement(SegmentPrefab); segmentText.Text = text; CreateNone(); return(segmentText); }