Any way to pass info from one Scene to the next?

I created a Rock Paper Scissors game and I need to pass the info that whether the PC or human has won to the Game Over Screen. How can O do that. I tried , but at last thought asking it here would be better. Any Help is highly appreciated :blue_heart:

Hi Sonu_64,

I assume your code compares two signs (rock, paper, scissors) with one another. One sign was created by the computer, the other by the player. If your code can distinguish between the two sign variables, you are able to pass on the winner’s name (player, computer).

In the Laser Defender project in the Unity 2D course, we display the score to the win/lose scene. You can use the same approach for displaying a string.

Also please feel free to ask our helpful community of students for advice over on our Discord chat server.


See also:

1 Like

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

Privacy & Terms