// Use this for initialization void Start() { //Get bool from questLogic to see if mushroom quest is active var mushroomQuestActiveCheck = GameObject.Find("GameLogic"); if (mushroomQuestActiveCheck == null) { Debug.Log("Could not find quest object"); return; } _questLogic = mushroomQuestActiveCheck.GetComponent <questLogic>(); if (_questLogic == null) { Debug.Log("Could not find quest object"); } var forestSoundCheck = GameObject.Find("SoundManagerForest"); if (forestSoundCheck == null) { Debug.Log("Could not find sound object"); return; } _forestSounds = forestSoundCheck.GetComponent <soundManagerForest> (); if (_forestSounds == null) { Debug.Log("Could not find quest object"); } }
// Use this for initialization void Start() { //Get bool from questLogic to see if which quests are active var mushroomQuestActiveCheck = GameObject.Find("GameLogic"); if (mushroomQuestActiveCheck == null) { Debug.Log("Could not find quest object"); return; } _questLogic = mushroomQuestActiveCheck.GetComponent <questLogic>(); if (_questLogic == null) { Debug.Log("Could not find quest object"); } moneyBag.SetActive(false); sodaCan.SetActive(false); _endGame = FindObjectOfType <endGame>(); }
/*AudioSource Array * whispers1 * whispers2 * forest dialog * forest dialog * spooky sounds */ /* * GvrAudioSource.clip = AudioClip[]; * GvrAudioSource.Play(); */ // Use this for initialization void Start() { //Get bool from questLogic to see if mushroom quest is active var mushroomQuestActiveCheck = GameObject.Find("GameLogic"); if (mushroomQuestActiveCheck == null) { Debug.Log("Could not find quest object"); return; } _questLogic = mushroomQuestActiveCheck.GetComponent <questLogic>(); if (_questLogic == null) { Debug.Log("Could not find quest object"); } //whispers always playing - ALT TURN LOOPING ON THOSE whisper0.clip = creepyForest [0]; whisper0.Play(); whisper1.clip = creepyForest [1]; whisper1.Play(); }
// Use this for initialization void Start() { mushroomTotal = 0; //Start with quest board hidden mushroomScoreBoard.enabled = false; mushroomIcon.SetActive(false); toggleActiveMushrooms(false); //enable questLogic var mushroomQuestCompleted = GameObject.Find("GameLogic"); if (mushroomQuestCompleted == null) { Debug.Log("Could not find quest object"); return; } _questLogic = mushroomQuestCompleted.GetComponent <questLogic>(); if (_questLogic == null) { Debug.Log("Could not find quest object"); } }
/* void Awake(){ * //Start with Forest Whispering - Range from 0-1 * int index = Random.Range(0, 1); * //forestSource.clip = forestDialog[0]; * forestSource.clip = forestDialog[index]; * forestSource.Play (); * }*/ // Use this for initialization void Start() { //Get bool from questLogic to see if mushroom quest is active var mushroomQuestActiveCheck = GameObject.Find("GameLogic"); if (mushroomQuestActiveCheck == null) { Debug.Log("Could not find quest object"); return; } _questLogic = mushroomQuestActiveCheck.GetComponent <questLogic>(); if (_questLogic == null) { Debug.Log("Could not find quest object"); } //Start with Forest Whispering - Range from 0-1 int index = Random.Range(0, 1); //forestSource.clip = forestDialog[0]; forestSource.clip = forestDialog[index]; forestSource.Play(); }