public void BuilderFinishedBuilding()
        {
            // clear scene variables
            gameController.ClearSceneVariables();

            // disable the drag and drop functionality
            gameController.DisableDragAndDropGameplay();

            //unsbuscribe from appropriate events
            Slot.OnPieceAddedToRocket         -= BuilderPieceAddedToRocket;
            DragHandler.OnPieceRemovedByTrash -= BuilderPieceRemoved;

            // load the end game comparison scene
            SceneManager.LoadScene("EndGameComparison");
        }
Example #2
0
        public void ExplainerFinishedBuilding()
        {
            // switch the explainer mode
            gameController.explainerMode = Constants.EXPLAINER_EXPLAINING;

            // disable the drag and drop functionality
            gameController.DisableDragAndDropGameplay();

            // clear scene variables
            gameController.ClearSceneVariables();

            //unsbuscribe from appropriate events
            Slot.OnPieceAddedToRocket         -= ExplainerPieceAddedToRocket;
            DragHandler.OnPieceRemovedByTrash -= ExplainerPieceRemoved;

            if (gameController.tutorialMode == Constants.TUTORIAL_OFF)
            {
                // have the robot alert the builder to start building
                gameController.SendRobotUtterance("builder-start-building", false);
            }
            else
            {
                gameController.SendRobotUtterance("tutorial-13-begin-builder", false);
            }

            // load the builder scene
            SceneManager.LoadScene("Builder");
        }