/// <summary> /// ClickOnSubmitButton is called when the player clicks on the /// Submit button on the Questionnaire scene. The information /// entered by the player will be used to create a player object /// </summary> public void ClickOnSubmitButton() { if (RequiredFieldsAreFilled()) { // Call function to store player information CreatePlayer(); GetPlayer(); SceneSwitcher.NextScene(); } else { EnterRequiredFieldsText.gameObject.SetActive(true); } }
/// <summary> /// JumpToResult controls the system to jump to the Result scene. /// It will be trigger as the "Check Result" button is clicked. /// </summary> public void JumpToResult() { SceneSwitcher.MoveToScene(SceneName.RESULT_SCENE); }
/// <summary> /// JumpToSaveOneBallGame controls the system to jump to the SaveOneBall /// game instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToJudgeTheBallGame() { SceneSwitcher.MoveToScene(SceneName.JUDGE_THE_BALL_INSTRUCTIONS_SCENE); }
/// <summary> /// JumpToSaveOneBallGame controls the system to jump to the SaveOneBall /// game instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToSaveOneBallGame() { SceneSwitcher.MoveToScene(SceneName.SAVE_ONE_BALL_INSTRUCTIONS_SCENE); }
/// <summary> /// JumpToCatchTheBallGame controls the system to jump to the CatchTheBall /// game instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToCatchTheBallGame() { SceneSwitcher.MoveToScene(SceneName.CATCH_THE_BALL_INSTRUCTIONS_SCENE); }
/// <summary> /// JumpToImageHitGame controls the system to jump to the ImageHit game instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToImageHitGame() { SceneSwitcher.MoveToScene(SceneName.IMAGEHIT_INSTRUCTIONS_SCENE); }
/// <summary> /// JumpToBalloonsGame controls the system to jump to the Balloons game instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToBalloonsGame() { SceneSwitcher.MoveToScene(SceneName.BALLOONS_INSTRUCTIONS_SCENE); }
/// <summary> /// JumpToSquaresGame controls the system to jump to the Squares instruction scene. /// It will be triggered as the game button is clicked. /// </summary> public void JumpToSquaresGame() { SceneSwitcher.MoveToScene(SceneName.SQUARES_INSTRUCTIONS_SCENE); }
// Game jumper functions start: //-------------------------------------------------------- /// <summary> /// JumpToCTFGame controls the system to jump to the Catch The Thief game instruction scene. /// It will will be triggered as the game button is clicked. /// </summary> public void JumpToCTFGame() { SceneSwitcher.MoveToScene(SceneName.CATCHTHETHIEF_INSTRUCTIONS_SCENE); }