Example #1
0
        private void CreateNone()
        {
            var label = CreateElement(NonePrefab);

            label.Text = "- none -";

            _lastNone = label;
        }
Example #2
0
        private void RemoveLastNone()
        {
            if (_lastNone != null)
            {
                _elements.Remove(_lastNone);

                DestroyImmediate(_lastNone.gameObject);
            }

            _lastNone = null;
        }
Example #3
0
        public REElement CreateSegment(string text)
        {
            _lastNone = null;

            var segmentText = CreateElement(SegmentPrefab);

            segmentText.Text = text;

            CreateNone();

            return(segmentText);
        }