Do i have to make another class for the enemy's health or i can just create it inside the enemy class itself. How do i do the codes for it ?
My idea is that the enemy will have 2 health if the enemy is hit by my bullet the bullet will disappear and the enemy will minus 1 hp. If the enemy is hit again by the bullet the enemy will then disappear. How do i write the code for this scenario.