コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
 /// <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);
 }
コード例 #8
0
 /// <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);
 }
コード例 #9
0
        // 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);
        }