// Use this for initialization
    void Start()
    {
        //Find script
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        generateNewQuestion();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        //Progress script
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        ChangeLevel(progressScript.level);
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        avatar = GameObject.FindGameObjectWithTag("MainAvatar");

        //Progress script
        AvatarProgress avatarProgressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        avatarProgressScript.ChangeBanner();
    }
    public void Start()
    {
        //Find script
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        //Preload
        PreloadStage(progressScript.stage);

        //Audio
        audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MathsAudio>();
    }
Beispiel #5
0
    // Use this for initialization
    void Start()
    {
        //Get scripts
        questionScript = GetComponent <Question>();
        answerScript   = GetComponent <CheckAnswer>();
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        //Audio
        audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MathsAudio>();

        moneyScript = GameObject.Find("MoneyManager").GetComponent <PlayerMoney>();
    }
Beispiel #6
0
    // Use this for initialization
    void Start()
    {
        //Set input field to regular
        inputField = regularField;

        //Bonus challenge script
        bonusChallengeScript = GetComponent <BonusChallenge>();

        //Audio
        audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MathsAudio>();

        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();
    }
    // Use this for initialization
    void Start()
    {
        moneyScript = GameObject.Find("MoneyManager").GetComponent <PlayerMoney>();

        //Progress script
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        //Audio
        audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MathsAudio>();

        //Initial collection
        currentParts = mapParts;
        currentImage = mapImage;

        //Check against progress script
        LevelUp(progressScript.level);

        LoadProgress();
    }
    // Use this for initialization
    void Start()
    {
        //Find script
        progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>();

        ChangeBackgroundMusic(progressScript.level);

        //OPTIONS
        OptionsScript optionsManager = GameObject.FindGameObjectWithTag("Options").GetComponent <OptionsScript>();

        //Disable music if needed
        if (!optionsManager.MusicOn)
        {
            backgrounSource.gameObject.SetActive(false);
        }

        if (!optionsManager.SFXOn)
        {
            soundEffectsSource.gameObject.SetActive(false);
            soundEffectsSource2.gameObject.SetActive(false);
        }
    }