//public string nextLevel = "Level_1";

    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        //Fetch the Raycaster from the GameObject (the Canvas)
        m_Raycaster = GetComponent <GraphicRaycaster>();
        //Fetch the Event System from the Scene
        m_EventSystem = GameObject.Find("EventSystem").GetComponent <EventSystem>();
    }
Beispiel #2
0
        public void TestSetup()
        {
            tempMain = new MainController();
            tempMain.setPlayerName("Player 1");
            tempMain.setNumberQuestions(1);

            tempMain.makeQuestions();

            sut = new GUI_Game();
            sut.setController(ref tempMain);
            tempMain.setGUI_GAME(sut);
            tempMain.setBasicInfo();
            tempMain.setQuestion();
            //_guiGame.Show();
        }
Beispiel #3
0
 public void SetGame(GUI_Game game)
 {
     _guiGame = game;
 }
Beispiel #4
0
 public void TestTearDown()
 {
     sut = null;
 }