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

            label.Text = "- none -";

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

                DestroyImmediate(_lastNone.gameObject);
            }

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

            var segmentText = CreateElement(SegmentPrefab);

            segmentText.Text = text;

            CreateNone();

            return(segmentText);
        }