Ejemplo 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);
        }
Ejemplo n.º 2
0
 public void Show(UILayerBase layer, params object[] args)
 {
     this.layer = layer;
     GetComponentsInChildren <IUIFrameView>().ForEach(view => view.OnShow(args));
 }
Ejemplo n.º 3
0
 public void Show(UILayerBase layer)
 {
     this.layer = layer;
 }