void Start() { // Add onMessage AirConsole.instance.onMessage += OnMessage; // Initialize some objects gameLogic = GameObject.FindGameObjectWithTag("GameLogic"); // Ask GameStats/AI Component for question to display and display it List <RealFakeData> realFakeList = getData(); print("Amount of realFake questions left: " + realFakeList.Count); gameLogic.GetComponent <GamesData>().setRealFakeData(realFakeList); string sentence = data.getQuestion(); trueAnswer = data.getTruth(); // Display question GameObject.FindGameObjectWithTag("ScreenText").GetComponent <TextMeshProUGUI>().text = "<b> Kies of deze nieuwskop afkomstig is van een echt <b>nieuws</b>artikel of niet! </b> \n\n " + sentence; // Send instructions to controller to change to "Yes or no layout" gameLogic.GetComponent <AIComponent>().SetView("view-2"); }
void Start() { // Add onMessage AirConsole.instance.onMessage += OnMessage; // Initialize some objects gameLogic = GameObject.FindGameObjectWithTag("GameLogic"); // Ask GameStats/AI Component for question to display and display it List <RealFakeData> realFakeList = getData(); print("Amount of sourceGame questions left: " + realFakeList.Count); gameLogic.GetComponent <GamesData>().setSourceGameData(realFakeList); string sentence = data.getQuestion(); trueAnswer = data.getTruth(); // Display question GameObject.FindGameObjectWithTag("ScreenText").GetComponent <TextMeshProUGUI>().text = "<b> Zoek de bron </b> \n\n Zoek op internet om erachter te komen of de onderstaande stelling waar of niet waar is! \n\n '" + sentence + "'"; // Send instructions to controller to change to "Yes or no layout" gameLogic.GetComponent <AIComponent>().SetView("view-7"); }