Example #1
0
 // Use this for initialization
 void Start()
 {
     hs = Camera.main.GetComponent<HarlemShake> ();
     thePlayer = GameObject.FindGameObjectWithTag ("Player");
     ah = thePlayer.GetComponent<AnimationHandler> ();
     aet = thePlayer.GetComponent<AudioEngineThing> ();
 }
Example #2
0
 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;
 }