public void Start () { w = GameObject.Find("Wave Stats").GetComponent<wave1stat> (); animwander=gameObject.GetComponent<AnimWander>(); _goblinSource = GetComponent<AudioSource>(); _trollsound = GetComponent<AudioSource>(); _cyclopsound = GetComponent<AudioSource>(); _playerHealth = GameObject.Find("Player").GetComponent<PlayerHealth>(); // Target = GameObject.Find("Player").transform;d Target = null; Targets = GameObject.FindGameObjectsWithTag("Animal").ToList(); _anim = gameObject. GetComponent<Animation>(); Player = GameObject.Find ("Player").transform; }
// Use this for initialization void Start () { wave = GameObject.Find ("Wave Stats").GetComponent<wave1stat> (); the_horse = GameObject.FindGameObjectWithTag ("Animal"); Time.timeScale = 1; }
void Start() { wave = GameObject.Find ("Wave Stats").GetComponent<wave1stat> (); }