❔ How to make it so a panel can't appear when another one is active
For a little context, all of the cubes are duplicates with the same tag "Player", except for the assigned to the player which has the tag "RealPlayer" (tag assigned through script), this is so when you cross the finish line it can display a different panel for whether you win or lose. How do I make it so once the win panel is active, the lose panel can´t appear anymore and vice versa?
3 Replies
This is the script for the finish line:
First thing, please use Col.CompareTag("Player") instead of gameObject.tag == "Player"
How do I make it so once the win panel is active, the lose panel can´t appear anymore and vice versa?Just have a state which panel is active check whether the other panel is active, then just immediately return.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.