Example #1
0
    // Use this for initialization
    void Start()
    {
        manager            = GameObject.Find("Map Manager").GetComponent <mapManager>();
        seek               = GetComponent <Seeker>();
        anim               = transform.GetComponentInChildren <guyAnim>();
        seek.pathCallback += OnPathComplete;
//		targetPos = findLeastOccupiedBuilding().transform;
        //seek.StartPath(transform.position, targetPos.position, OnPathComplete);
    }
Example #2
0
 void Start()
 {
     music = GameObject.FindGameObjectWithTag("music");
     lib   = music.GetComponent <Hv_pedSynths_AudioLib>();
     parms = music.GetComponent <changeSynthParams>();
     anim  = GetComponent <guyAnim>();
     createKnown();
     reaction = transform.Find("Cloud").transform.Find("Reaction").GetComponentInChildren <PickReactionImage>();
 }