Join Harrison Ferrone for an in-depth discussion in this video Create the player model, part of Unity: Working with Google Firebase.
- [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 the Player script.…We're going to delete the starting update functions…
- Working with Firebase
- Adding signup and login functionality
- Building a player class
- Saving data
- Retrieving data
- Displaying data in the Unity GUI
- Making a reusable asset package for other Unity projects
Skill Level Intermediate
Careers in the Game Industrywith Christian Bradley1h 19m Beginner
Building Custom Tools to Extend the Unity IDEwith Jesse Freeman2h 11m Intermediate
Unity 5: 2D Building an Adventure Gamewith Jesse Freeman2h 22m Intermediate
1. Project Overview
2. Introduction to Firebase
3. Authenticating Players
4. Using the Realtime Database
5. Displaying Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.