Join Harrison Ferrone for an in-depth discussion in this video Use delegates and events, part of Unity: Working with Google Firebase.
- [Instructor] Because we want to keep our off manager…separated out from our game code,…we need some way to pass information back…from our off manager to the form manager.…We also need a way of letting the form manager know…when an off event has been triggered.…So if you're saying to yourself,…"well, let's just use the delegate pattern…to create callback events,"…you'd be right on the money,…because that's exactly what we're going to do.…To top this script,…we need another using directive.…Using system.threading.tasks.…
That's going to allow us to pass a task…back through our callback,…and we're going to be using the task we get back…from our fire base,…to create user with email and password call.…If you've never used delegates or events before,…they're exactly what they sound like.…Delegates are essentially function lists…that can be subscribed to by other scripts in our game.…When a delegate method is called,…it'll also call any method on any script…that has subscribed to that delegate.…Now this is really powerful,…
- 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.