void Start() { anim = GetComponent <Animator>(); halfHealth = health / 2; transitions = FindObjectOfType <transitionsPanel>(); healtBar = FindObjectOfType <Slider>(); healtBar.maxValue = health; }
void Start() { movePoint = GameObject.FindGameObjectsWithTag("BossMovePoint"); healthBar = FindObjectOfType <Slider>(); anim = GetComponent <Animator>(); healthBar.gameObject.SetActive(true); halfHealth = health / 2; healthBar.maxValue = health; transitionsPanel = FindObjectOfType <transitionsPanel>(); player = GameObject.FindGameObjectWithTag("Player"); }
// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); ry = GetComponent <Rigidbody2D>(); transitions = FindObjectOfType <transitionsPanel>(); }