Esempio n. 1
0
 private void Close(UIFrame frame)
 {
     if (frame == _currentFrame)
     {
         Close(_currentFrameDBEntry);
     }
 }
Esempio n. 2
0
        private void RespawnFrame()
        {
            if (_currentFrame != null)
            {
                Destroy(_currentFrame.gameObject);
            }
            _currentFrame = frameDBEntry.LoadPrefab <UIFrame>().Clone(transform);

            if (stretch)
            {
                _currentFrame.rectTransform.Stretch();
            }
        }
Esempio n. 3
0
        public override void Show(UIFrameDBEntry frame, params object[] args)
        {
            if (_currentFrameDBEntry == frame)
            {
                return;
            }
            var prevFrame = _currentFrame;

            _currentFrameDBEntry = frame;
            _currentFrame        = ShowFrame(frame, args);
            if (prevFrame != null)
            {
                Destroy(prevFrame.gameObject);
            }
        }
Esempio n. 4
0
        public bool IsTopFrameInStack(UIFrame frame)
        {
            var layers = GetLayersOnTop(frame.layer, false);

            return(layers.Where(l => l.currentFrames.Count > 0).Count() == 0);
        }