// Use this for initialization void Start() { hs = Camera.main.GetComponent<HarlemShake> (); thePlayer = GameObject.FindGameObjectWithTag ("Player"); ah = thePlayer.GetComponent<AnimationHandler> (); aet = thePlayer.GetComponent<AudioEngineThing> (); }
void Start() { blinky = GetComponent<Blinker> (); sound = GetComponent<AudioSource> (); gc = GameObject.FindGameObjectWithTag ("GameController").GetComponent<GameController> (); aet = GameObject.FindGameObjectWithTag ("Player").GetComponent<AudioEngineThing> (); fishy = transform.GetComponent<FishyBehavior> (); dead = false; isEnemy = false; if (this.gameObject.tag == "Enemy") isEnemy = true; }