예제 #1
0
    /** <summary>
     * Ends the algorithm's execution and launches the start menu for the user. </summary> */
    public static void Stop_algorithm()
    {
        //stop the algorithm
        algorithm.Stop_algorithm();

        //display the start menu
        gui_controller.Add_display("StartMenu");
    }
예제 #2
0
    /*-------------------------------------------------------------------------------------------------------------*/

    /** <summary>
     * This sets up the scene, grabbing GameObjects and displaying a start menu. </summary> */
    void Start()
    {
        //get the script for the camera using the camera's tag in the scene
        camera_controller = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraController>();

        //add a start menu to the scene
        gui_controller = gameObject.GetComponent <GUIController>();
        gui_controller.Add_display("StartMenu");
    }
예제 #3
0
    /*-------------------------------------------------------------------------------------------------------------*/
    /** <summary>
     * This sets up the scene, grabbing GameObjects and displaying a start menu. </summary> */
    void Start()
    {
        //get the script for the camera using the camera's tag in the scene
        camera_controller = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraController>();

        //add a start menu to the scene
        gui_controller = gameObject.GetComponent<GUIController>();
        gui_controller.Add_display("StartMenu");
    }