예제 #1
0
        public void exitClick()
        {
            if (searching)
            {
                stopSearching = true;

                if (timer != null)
                {
                    timer.Dispose();
                }
                TurnPop(true);
                popup.SetActive(true);
            }
            else
            {
                popup.SetActive(false);
                foreach (var clickable in Clickable.Except(Clickable.Where(p => p.Parent == popup.grid)))
                {
                    clickable.Active = true;
                }

                chosenDeck             = null;
                Game1.self.popupToDraw = null;
                ClickableToRemove.ForEach(p => Clickable.Remove(p));
            }
        }
예제 #2
0
        public void onPopupExit()
        {
            popup.SetActive(false);
            foreach (var clickable in Clickable.Except(Clickable.Where(p => p.Parent == popup.grid)))
            {
                clickable.Active = true;
            }

            Game1.self.popupToDraw = null;
        }
        public void onPopupExit()
        {
            popup.SetActive(false);
            foreach (var clickable in Clickable.Except(Clickable.Where(p => p.Parent == popup.grid)))
            {
                clickable.Active = true;
            }

            Game1.self.state = Game1.State.MainMenu;
            Game1.self.UpdateHistory();
            Game1.self.UpdatePlayer();
            Game1.self.popupToDraw = null;
        }
예제 #4
0
        public void onExitCustom()
        {
            if (searching)
            {
                stopSearching = true;
            }
            else
            {
                popup.SetActive(false);
                foreach (var clickable in Clickable.Except(Clickable.Where(p => p.Parent == popup.grid)))
                {
                    clickable.Active = true;
                }

                chosenDeck             = null;
                Game1.self.popupToDraw = null;
                ClickableToRemove.ForEach(p => Clickable.Remove(p));
            }
        }