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

        ChangeSprite();

        StartCoroutine("PlantTimer");
    }
Example #2
0
    // 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>();
        }
    }
Example #3
0
 void Start()
 {
     scriptPlayer = FindObjectOfType <sc_Player>();
     updateRecipe();
 }