void Awake() { synth = this.GetComponentInParent <Hv_BoidSynth06_Sine_AudioLib>(); agent = this.GetComponentInParent <SingleAgentWander>(); angles = this.GetComponentInParent <AngleDetection>(); if (synth != null) { Debug.Log("Synth Okay"); NoteToggle(); SetGainSmoothTime(500); SetAttackRelease(1000); } else { Debug.Log("Where synth?"); } }
void Awake() { synth = this.GetComponentInParent <Hv_Boidsynth07_AudioLib>(); agent = this.GetComponentInParent <FlockAgent>(); angles = this.GetComponentInParent <AngleDetection>(); }