The question is answered, right answer was accepted
C# allowing the Player to name themselves and using it later in text
I've been trying to figure out how to allow the Player to name themselves and use the name later in text form. Making a text say something like "Hello + PlayerName." Please explain I've been trying to figure out how to do this but i haven't been successful. I am using C#
Answer by dpoly · Jan 05, 2017 at 11:28 PM
Store the player name in a string variable in a Singleton class for the Game, and make it public so you can access it from anywhere. Input the string using GUI Input. Output it using GUI or whatever else you may be using for text.
Follow this Question
Related Questions
Error in camera script 1 Answer
Transfering script to other game objects via code (Unity 2D) 0 Answers
Game working in pc but not in Android While Testing 0 Answers
Why isn't my C# code sending updates to my text scoreboard? 1 Answer
How do I make somthing happen when the Player reaches a certain x, y, z position? 0 Answers