Пример #1
0
 public void journalNext()
 {
     if (PlayerData.journal2 & PlayerData.currentJournal == 1)
     {
         Journal1.SetActive(false);
         Journal2.SetActive(true);
         PlayerData.currentJournal += 1;
     }
     else if (PlayerData.journal3 & PlayerData.currentJournal == 2)
     {
         Journal2.SetActive(false);
         Journal3.SetActive(true);
         PlayerData.currentJournal += 1;
     }
     else if (PlayerData.journal4 & PlayerData.currentJournal == 3)
     {
         Journal3.SetActive(false);
         Journal4.SetActive(true);
         PlayerData.currentJournal += 1;
     }
     else if (PlayerData.journal5 & PlayerData.currentJournal == 4)
     {
         Journal4.SetActive(false);
         Journal5.SetActive(true);
     }
 }
Пример #2
0
 public void CloseJournal()
 {
     Detective.isMoveEnabled = true;
     buttons.SetActive(true);
     settingsButton.SetActive(true);
     journalButton.SetActive(true);
     Journal1.SetActive(false);
     Journal2.SetActive(false);
     Journal3.SetActive(false);
     Journal4.SetActive(false);
     Journal5.SetActive(false);
 }