// 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");
        }
    }
Ejemplo n.º 2
0
    // 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>();
    }
Ejemplo n.º 3
0
    /*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");
        }
    }
Ejemplo n.º 5
0
/*	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();
    }