public void GoToSceneTwo() { if (gameLogic.m_levelTwoUlocked == true) { m_loadingUI.SetActive(true); StartCoroutine(LoadNewScene("02-level-fort-loader")); gameLogic.m_playerScore = gameLogic.m_playerScore + 500; } else { m_gameLogic.DisplayNotif("Level 2 is locked! You need the key.", 2); Debug.Log("Level 2 is locked! You need the key."); } }
void Start() { m_gameTimer = GameObject.Find("Player/GvrEditorEmulator/HUD-parent/HUD/timer"); m_gameTimerText = GameObject.Find("Player/GvrEditorEmulator/HUD-parent/HUD/timer/Panel/timer").GetComponent <TextMeshProUGUI>(); if (m_showStartMsg == true) { m_gameLogic.DisplayNotif(m_startMsg, m_startMsgSeconds); } }
public void OpenTreasure() { if (gameLogic.m_finalKey == true) { m_AnimDoorOpen.enabled = true; m_SoundDoor.SetActive(true); m_LevelMusic.SetActive(false); m_WinMusic.SetActive(true); m_gameLogic.WinGame(); } else { m_gameLogic.DisplayNotif("You need the final key. Find it hidden somewhere!", 3); } }