void InitRoom() { CurrentRoom++; if (CurrentRoom > 0) { PrevButton.Appear(); } else { PrevButton.Resume(); } if (CurrentRoom < FolloweesList.Count - 1) { NextButton.Appear(); } else { NextButton.Resume(); } EnterRoom(CurrentRoom); if (FinishedButton != null) { FinishedButton.Resume(); } }
//pause the game and activate the pause-menu public void Pause() { PopupMenu pauseMenu = Camera.main.transform.Find("PauseMenu").GetComponent <PopupMenu>(); if (pauseMenu != null) { pauseMenu.Appear(); } }
void NextRoom() { CurrentRoom++; if (CurrentRoom == 1) { PrevButton.Appear(); } if (CurrentRoom == FolloweesList.Count - 1) { NextButton.Resume(); if (FinishedButton != null) { FinishedButton.Appear(); } } EnterRoom(CurrentRoom); }