void Start() { //Register this boid with the list of boids. boidList.Add(this.GetComponent <BirdStatePattern>()); //Cache the rigidbody for later... body = GetComponent <Rigidbody>(); swordUI = Singleton_Service.GetSingleton <SwordUI>(); anim = GetComponent <Animator>(); enemyAudio = GetComponent <AudioSource>(); gm = Singleton_Service.GetSingleton <GM>(); gmb = Singleton_Service.GetSingleton <BossGM>(); playerPosition = GameObject.FindGameObjectWithTag("Player Position").transform; StartCoroutine("WingFlapTimer"); }
void Start() { bossGM = Singleton_Service.GetSingleton <BossGM>(); heartAudio = GetComponent <AudioSource>(); }