public void Start() { //Find script progressScript = GameObject.FindGameObjectWithTag("AvatarTransfer").GetComponent <AvatarProgress>(); //Preload PreloadStage(progressScript.stage); //Audio audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <MathsAudio>(); }
// 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>(); }
// 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(); }