// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); NBM = FindObjectOfType <NecroBossManager>(); P1 = GameObject.FindObjectOfType <NecromancerPhase1>(); SORL = GameObject.FindObjectOfType <StartOrResetLevel>(); anim = GetComponent <Animator>(); BC = GetComponent <BoxCollider2D>(); BC.enabled = false; EHM = P1.GetComponent <EnemyHealthManager>(); doorUnlocked = false; }
// Use this for initialization void Start() { P1 = FindObjectOfType <NecromancerPhase1>(); }