public void AddOpenPromt(SfbPromt promt)
        {
            openPromts.Add(promt);

            var panels = window.GetComponentsInChildren<SfbDisabledWindowOverlay>(true);
            foreach (var panel in panels) {
                panel.gameObject.SetActive(true);
            }
        }
Exemple #2
0
        public void AddOpenPromt(SfbPromt promt)
        {
            openPromts.Add(promt);

            var panels = window.GetComponentsInChildren <SfbDisabledWindowOverlay>(true);

            foreach (var panel in panels)
            {
                panel.gameObject.SetActive(true);
            }
        }
Exemple #3
0
        public void ClosingOpenPromt(SfbPromt promt)
        {
            openPromts.Remove(promt);

            if (openPromts.Count == 0)
            {
                var panels = window.GetComponentsInChildren <SfbDisabledWindowOverlay>(true);
                foreach (var panel in panels)
                {
                    panel.gameObject.SetActive(false);
                }
            }
        }
        public void ClosingOpenPromt(SfbPromt promt)
        {
            openPromts.Remove(promt);

            if (openPromts.Count == 0) {
                var panels = window.GetComponentsInChildren<SfbDisabledWindowOverlay>(true);
                foreach (var panel in panels) {
                    panel.gameObject.SetActive(false);
                }
            }
        }