void Awake() { life = GetComponent <PlantLife> (); seq = GetComponent <playSequence> (); neighbours = life.neighbourPos; neighbourObj = new GameObject[6]; ybump = new Vector3(0, 1, 0); }
//Revise this script so that all AudioClips are taken from Species //In order to do this^ must create dictionaries for each stage of PlantLife private void Awake() { timerStartVal = timer; plantlife = GetComponent <PlantLife>(); SimpleClock.ThirtySecond += OnThirtySecond; //audio.clip = clips [Random.Range (0, 1)]; }
void Awake() { //mixer = Instantiate (); farmManager = GameObject.Find("farmManagerNew"); //octave = farmManager.GetComponent<assignKey>().octave; life = GetComponent <PlantLife>(); //note = Random.Range (0, 6); bed = GameObject.FindGameObjectWithTag("Bed"); sleepScript = bed.GetComponent <Bed>(); if (Random.Range(0, 3) == 1) { note = 0; isLeader = true; start = Random.Range(0, startScale); } else { note = Random.Range(0, 6); } changedSequence = false; }