private void SetUpT2() { HideAllInstructions(); PanelIns3.SetActive(true); T2Narrative.SetActive(true); T2NarrativeDesk.SetActive(true); NarrativeHolder.SetActive(true); MainRoom.SetActive(false); T2Room.SetActive(true); }
private void SetUpMain() { HideAllInstructions(); PanelIns6.SetActive(true); T1Narrative.SetActive(false); T2Narrative.SetActive(false); T3Narrative.SetActive(false); T1NarrativeDesk.SetActive(false); T2NarrativeDesk.SetActive(false); T3NarrativeDesk.SetActive(false); NarrativeHolder.SetActive(false); T1Room.SetActive(false); T2Room.SetActive(false); T3Room.SetActive(false); MainRoom.SetActive(true); MenuPlaying = true; }
public void IncreaseCurrentSelected() { if (menuVisible == true && NarrativeVisible == false) { if (CurrentSelected == 1) { CurrentSelected = CurrentSelected + 1; if (MenuOption1 == 1) { //start T1 fader.FadeToBlack(); NarrativeVisible = true; //Stop music if (MenuPlaying == true) { //FindObjectOfType<AudioController>().StopMusic("StartMenuMusic"); //FindObjectOfType<AudioController>().StopMusic("BackMenuMusic"); SoundManager.instance.PlayTrack(T1Music); T1Playing = true; MenuPlaying = false; } Invoke("SetUpT1", 3.0f); } if (MenuOption1 == 2) { //start T2 fader.FadeToBlack(); NarrativeVisible = true; //Stop music if (MenuPlaying == true) { //FindObjectOfType<AudioController>().StopMusic("StartMenuMusic"); //FindObjectOfType<AudioController>().StopMusic("BackMenuMusic"); SoundManager.instance.PlayTrack(T2Music); T2Playing = true; MenuPlaying = false; } Invoke("SetUpT2", 3.0f); } if (MenuOption1 == 3) { //start T3 fader.FadeToBlack(); NarrativeVisible = true; //Stop music if (MenuPlaying == true) { //FindObjectOfType<AudioController>().StopMusic("StartMenuMusic"); //FindObjectOfType<AudioController>().StopMusic("BackMenuMusic"); SoundManager.instance.PlayTrack(T3Music); T3Playing = true; MenuPlaying = false; } Invoke("SetUpT3", 3.0f); } } else if (CurrentSelected == 2) { CurrentSelected = CurrentSelected + 1; } else if (CurrentSelected == 3) { // if T2 Videos if (MenuOption1 == 2) { // videos if (MenuOption2 == 2) { CurrentSelected = CurrentSelected + 1; PlayVideo(); } } // if T3 Videos if (MenuOption1 == 3) { // videos if (MenuOption2 == 2) { CurrentSelected = CurrentSelected + 1; PlayVideo(); } } } UpdateMenuOption(); } else { if (MenuOption1 == 1) { NarrativeVisible = false; T1Narrative.SetActive(false); T1NarrativeDesk.SetActive(false); NarrativeHolder.SetActive(false); } if (MenuOption1 == 2) { NarrativeVisible = false; T2Narrative.SetActive(false); T2NarrativeDesk.SetActive(false); NarrativeHolder.SetActive(false); } if (MenuOption1 == 3) { NarrativeVisible = false; T3Narrative.SetActive(false); T3NarrativeDesk.SetActive(false); NarrativeHolder.SetActive(false); } UpdateMenuOption(); } }