how do i send a massage from a script in and seen to the other script in the other seen. for a two seen score board setup.
Do you mean from “scene to scene”? And although it might enjoy a “massage” it clearly is better for you to send a “message”.
Now to your problem. Sending a message from one script in one scene to another script in another scene is not possible out of the box because the scripts within a scene are not persistent and thus does not exist when another scene (than the one they are present in) is loaded.
What you need to do is to have one script (or more) persist through all your scenes and keep track of these scores of yours. This can be accomplished simply by adding
DonDestroyOnLoad(this); in either Awake or Start on the script you want to keep through level loads. Then it will stay in each scene even when you load a new one.
Hope this helps. Just read my post and I might come off as rambling, but the solution is in there ![]()