Exemplo n.º 1
0
 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?");
     }
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        // Populate the scene with flock agents
        for (int i = 0; i < startingCount; i++)
        {
            //Debug.Log("Instantiating Flock Agent");
            SingleAgentWander newAgent = Instantiate(
                agentPrefab,
                Random.insideUnitCircle * 3,
                Quaternion.Euler(Vector3.forward * Random.Range(0f, 360f)),
                transform
                );
            //newAgent.name = "Agent " + i;


            //agents.Add(newAgent);
        }
    }