예제 #1
0
        public void StopGame()
        {
            _drawAssistant.StopDraw();
            _drawAssistant.Clear();
            UIMainController.HideGameInfo();

            _previewWindow.CloseWindow();

            var endWindow = UIMainController.GetWindowById(Constants.UI_END_GAME_WINDOW);

            if (endWindow != null)
            {
                endWindow.ShowWindow();
            }
        }
예제 #2
0
        private IEnumerator PreviewCurrentLevel()
        {
            Polygon poly = new Polygon(GameLogic.Instance.GetTaskShape().vertices);

            if (poly != null)
            {
                _drawAssistant.DrawShape(poly);
            }
            yield return(null);

            yield return(StartCoroutine(GetScreenShot()));

            _drawAssistant.Clear();

            RollUpWindow();

            yield return(new WaitForSeconds(0.5f));

            currentState = State.rolledUp;
        }