Win Lose Bug

So I have an edge case - when you have one attacker left and one life left, if the one attacker makes it to the base collider and takes your last life, it’ll trigger both the win and the lose condition.

bug

You’ll have to put some conditions in your win and lose methods and some sort of state. So if the lose method has already been called then the win method is called after it is ignored and vise versa.

I made a public float that returns the remaining base lives and then an if statement in the win condition coroutine that checks if the base lives is not equal to zero.

Hi @Vorundor,

How are you getting on with this?

Hi @Nina,

Sorry I didn’t mark it before but the float I made helped this issue, all is well now. :slight_smile:

Thank you.

Fanastic. I just wanted to make sure that you are not waiting for help. :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms