// 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); }
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>(); }