From the course: Unity: Working with Google Firebase

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Create the player model

Create the player model

From the course: Unity: Working with Google Firebase

Start my 1-month free trial

Create the player model

- [Instructor] It's time to create the player class we talked about during the data structures video. Whenever a new user signs up successfully, we want to create a new player node with their UID as the key, and store their email, score, and current character level. In Unity, go into the scripts folder, right click create, C# Script. We're just going to call this Player. Now this seems like a good time for a bit of housekeeping so while we're still in the scripts folder, let's create a few subfolders. Right click, create folder. I'm going to name the first one Models. I'm going to use command + D to duplicate. If you're on Mac, if you're on Windows, it's control + D. Hit enter to rename. I'm going to call the second one Managers. And I'm going to duplicate this one more time and call it Utilities. Now we're going to put all our Manager scripts in the Managers folder, our Player is going to go in Models and our router in Utilities. Let's go into the Models folder and double click on…

Contents