void Start() { scriptPlayer = FindObjectOfType <sc_Player>(); scriptManager = FindObjectOfType <sc_Manager_Game>(); spritePlant = GetComponent <SpriteRenderer>(); plantLifeMax = plantLife; timerCount = timeForLvlUp; ChangeSprite(); StartCoroutine("PlantTimer"); }
// Start is called before the first frame update void Start() { audiodata = GetComponent <AudioSource>(); scriptPlayer = FindObjectOfType <sc_Player>(); scriptBook = FindObjectOfType <sc_Book>(); //scriptManager = FindObjectOfType <sc_Manager_Game>(); //Letters DisableLetters(); audiodata.clip = musicIntro; PlayMusic(); if (ManagerAudio != null) { scSoundButton = GetComponent <sc_SoundButton>(); } }
void Start() { scriptPlayer = FindObjectOfType <sc_Player>(); updateRecipe(); }