In my game, player can have an alternative screen if a condition is not met.from an earlier state. How would I go about implementing it? I understand it will be bool variable; and maybe I’m aiming a little above my understanding, but would love to add it.
Are just trying to load a different scene?
Yes. If the player has used the weapon once, the second time it will not work, unless recharged.
So what you’re trying to do is pass a variable between scenes, correct? If that is the case look into don’t destroy on load as a way of passing data between scenes.
If this all happens in the same scene then when the weapon is used Check the variable to see if it’s false and if so perform your actions, then set that variable to true
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.