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() { scriptManager = FindObjectOfType <sc_Manager_Game>(); //Audio Code audioData = GetComponent <AudioSource>(); }