void Start() { guic = GameObject.Find("Canvas/GameUI").GetComponent <GameUIController> (); gc = GameObject.Find("GameController"); player = GameObject.FindWithTag("Player"); boss = GameObject.Find("Boss"); bossCtrlr = boss.GetComponent <DogCatcherController> (); Physics2D.IgnoreCollision(boss.GetComponent <Collider2D> (), player.GetComponent <Collider2D> ()); boss.SetActive(false); }
protected override void Start() { base.Start(); player = GameObject.FindWithTag("Player"); boss = GameObject.Find("Boss"); bossAnim = boss.GetComponent <Animator> (); bossCtrlr = boss.GetComponent <DogCatcherController> (); doorPosition = GameObject.Find("Van/BossDoorPosition").transform; drivingPosition = GameObject.Find("Van/BossDrivingPosition").transform; van = GameObject.Find("Van"); vanAnim = van.GetComponent <Animator> (); vanLeftPosition = GameObject.Find("Triggers/VanLeftPosition").transform; vanRightPosition = GameObject.Find("Triggers/VanRightPosition").transform; audioSource = GetComponent <AudioSource> (); }