Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        currentHealth = health;

        rb   = GetComponent <Rigidbody2D>();
        anim = GetComponent <Animator>();

        healthBar2.SetMaxHealth2(health);
    }