// Start is called before the first frame update void Start() { currentHealth = health; rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); healthBar2.SetMaxHealth2(health); }