public Gameobject shield 1
public Gameobject shield 2
public Gameobject shield 3
//How would I make 3 separate game objects be required to be destroyed first before you can attack a fourth GameObject? If any one of them is still active, you would be unable to deal any damage to the fourth object, even if one of the first three objects is still active.
void OnTriggerEnter(Collider col)
{
if (shield1 || shield2 || shield3 == false)
{
curHP -= 15; //will decrease health
}
else
{
curHP -= 0; //will not decrease health
}
}