protected override void Start() { base.Start(); cat = GameObject.FindWithTag("Player"); rat = GameObject.FindWithTag("Rat"); ratAnim = rat.GetComponent <Animator>(); dogCtrlr = dog.GetComponent <BulldogBossController>(); dogCtrlr.OnDeath += OnBossDeath; // listener on boss death cam = GameObject.FindGameObjectWithTag("MainCamera"); }
// Use this for initialization void Start() { cat = GameObject.FindGameObjectWithTag("Player"); rat = GameObject.FindGameObjectWithTag("Rat"); bubble = rat.GetComponentInChildren <SpeechBubbleController>(true); ratAnim = rat.GetComponent <Animator> (); dogAnim = dog.GetComponent <Animator>(); guic = GameObject.Find("Canvas/GameUI").GetComponent <GameUIController> (); bossCtrlr = dog.GetComponent <BulldogBossController>(); startPlatform = ratUp; bossCtrlr.OnDeath += OnBossDeath; }