Esempio n. 1
0
    void Start()
    {
        scriptPlayer  = FindObjectOfType <sc_Player>();
        scriptManager = FindObjectOfType <sc_Manager_Game>();
        spritePlant   = GetComponent <SpriteRenderer>();
        plantLifeMax  = plantLife;
        timerCount    = timeForLvlUp;

        ChangeSprite();

        StartCoroutine("PlantTimer");
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     scriptManager = FindObjectOfType <sc_Manager_Game>();
     //Audio Code
     audioData = GetComponent <AudioSource>();
 }