Esempio n. 1
0
        public IEnumerable <UILayerBase> GetLayersOnTop(UILayerBase layer, bool include)
        {
            var layersList = new List <UILayerBase>();

            if (include)
            {
                layersList.Add(layer);
            }
            layersList.AddRange(_layers.Values.Where(l => l.canvas.sortingOrder >= layer.canvas.sortingOrder && l != layer && l.usedByHotkeys));
            return(layersList);
        }
Esempio n. 2
0
 public void Show(UILayerBase layer, params object[] args)
 {
     this.layer = layer;
     GetComponentsInChildren <IUIFrameView>().ForEach(view => view.OnShow(args));
 }
Esempio n. 3
0
 public void Show(UILayerBase layer)
 {
     this.layer = layer;
 }