コード例 #1
0
 private void AccusationResult(bool accusation)
 {
     //Check if accusation is true and is the acutal murderer
     if ((accusation == true) && (character.IsMurderer()))
     {
         //If so go to win screen
         notebookMenu.SetActive(false);
         SceneManager.LoadScene("Win Screen");
     }
     else
     {
         //If not display accusation failed message, block character and penalise score
         NotebookManager.instance.ResetSelectedClues();
         notebookMenu.SetActive(false);
         verbal.SetActive(true);
         verbalText.text = "You don't have enough evidence to accuse me of murder!";
         GameMaster.instance.Penalise(200);              //ADDITION BY WEDUNNIT
         if (NotebookManager.instance.inventory.GetSize() < 9)
         {
             character.BlockCharacterQuestioning();                                                               //ADDITION BY WEDUNNIT //Only block if there are still clues to find, or the player might get stuck
         }
         //__NEW_FOR_ASSESSMENT_4__(START)
         if (GameObject.Find("Multiplayer Manager Object") != null)
         {
             MultiplayerManager.instance.GetTurnManager().IncrementActionCounter();                 // For turn switching in multiplayer.
             MultiplayerManager.instance.GetTurnManager().IncrementActionCounter();
             MultiplayerManager.instance.GetTurnManager().IncrementActionCounter();
         }
         //__NEW_FOR_ASSESSMENT_4__(END)
     }
 }
コード例 #2
0
 private void AccusationResult(bool accusation)
 {
     //Check if accusation is true and is the acutal murderer
     if ((accusation == true) && (character.IsMurderer()))
     {
         //If so go to win screen
         notebookMenu.SetActive(false);
         SceneManager.LoadScene("Win Screen");
     }
     else
     {
         //If not display accusation failed message, block character and penalise score
         notebookMenu.SetActive(false);
         verbal.SetActive(true);
         verbalText.text = "You don't have enough evidence to accuse me of murder!";
         GameMaster.instance.Penalise(200);              //ADDITION BY WEDUNNIT
         if (NotebookManager.instance.inventory.GetSize() < 9)
         {
             character.BlockCharacterQuestioning();                                                               //ADDITION BY WEDUNNIT //Only block if there are still clues to find, or the player might get stucku
         }
     }
 }