private void takeDamage() { gC.HP -= 20; hpBarController.SetDamage(20.0f); Debug.Log("Hit"); if (gC.HP <= 0) { decreaseLife(); } }
// Update is called once per frame void Update() { if (Lives < 0) { } //Test// if (Input.GetKeyDown(KeyCode.T)) { hpBarController.SetDamage(20.0f); } }