![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | hermo |
My game is made of 2 scenes: STAGE and PLAYER.
A have a variable called SCORE in the player script of the PLAYER scene.
I have instanced PLAYER into STAGE and I can play just fine and I can print the variable to the console and it updates perfectly.
The problem comes when I try to print the variable to a RichTextLabel in the STAGE scene so it is visible in the main game.
How can I access the variable SCORE from the RichTextLabel script?
Thank you so much!