using System.Collections; using System.Collections.Generic; using Assets.HeroEditor.Common.Scripts.Common; using Assets.Scripts.CharacterScripts; using UnityEngine; public class BossArena : MonoBehaviour{ public EnemyController boss; public PlayerController player; // Start is called before the first frame update void Start(){ // Set the boss health bar to inactive and initialize the player reference boss.bossHealthBar.SetActive(false); player = GameObject.FindGameObjectWithTag("Player").GetComponent(); } // Update is called once per frame void Update(){ // Continuously check if the player has entered the boss arena and once they do, activate the boss health bar if (player.enteredBossArena){ boss.bossHealthBar.SetActive(true); } } }