{"id":13660434,"url":"https://github.com/llamacademy/unity-csharp-basics-5","last_synced_at":"2025-04-24T19:30:58.828Z","repository":{"id":109903389,"uuid":"497954851","full_name":"llamacademy/unity-csharp-basics-5","owner":"llamacademy","description":"Learn about delegates in a Unity-focused tutorial!","archived":false,"fork":false,"pushed_at":"2022-07-24T13:55:54.000Z","size":2031,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T11:57:53.540Z","etag":null,"topics":["delegates","game-development","gamedev","gamedevelopment","tutorial","tutorial-code","unity","unity3d"],"latest_commit_sha":null,"homepage":"https://youtu.be/1N6k7Hj_JKc","language":"ShaderLab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llamacademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":null,"patreon":"llamacademy","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-05-30T13:26:46.000Z","updated_at":"2025-03-05T21:14:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1cd41d9-9514-483a-a2f1-28bed665fdfb","html_url":"https://github.com/llamacademy/unity-csharp-basics-5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llamacademy%2Funity-csharp-basics-5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llamacademy%2Funity-csharp-basics-5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llamacademy%2Funity-csharp-basics-5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llamacademy%2Funity-csharp-basics-5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llamacademy","download_url":"https://codeload.github.com/llamacademy/unity-csharp-basics-5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693501,"owners_count":21472270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delegates","game-development","gamedev","gamedevelopment","tutorial","tutorial-code","unity","unity3d"],"created_at":"2024-08-02T05:01:21.521Z","updated_at":"2025-04-24T19:30:57.517Z","avatar_url":"https://github.com/llamacademy.png","language":"ShaderLab","readme":"﻿# Unity Coding Basics Part 5 - Delegates \u0026 Raising Events\n\nIf you've been using Unity for a while, or are just getting started with Unity and decided it's time for you to start learning how to write code - this is the video series you need to start your programming journey!\n\n* [Part 1](https://youtu.be/SXaa61JWLDw) - [GitHub Repository](https://github.com/llamacademy/unity-csharp-basics-1)\n* [Part 2](https://youtu.be/MB6B9nHSrps) - [GitHub Repository](https://github.com/llamacademy/unity-csharp-basics-2)\n* [Part 3](https://youtu.be/TD3yoFg3GVI) - [GitHub Repository](https://github.com/llamacademy/unity-csharp-basics-3)\n* [Part 4](https://youtu.be/JRRlAzBh-6U) - No GitHub Repository for this one. Nothing new implemented.\n* [Part 5](https://youtu.be/1N6k7Hj_JKc) - You are here 🙂\n\nIn this tutorial repository (with [associated video](https://youtu.be/1N6k7Hj_JKc)), aimed at absolute beginners who have very little to no coding experience whatsoever, you'll learn about delegates, when to use them, and when you might want to use a UnityEvent instead!\n\n\n**📝📝📝YOUR HOMEWORK!📝📝📝**\n\nUpdate your singleton MonoBehaviour to raise events when it spawns an object and when that object is destroyed! For the simplest implementation you can just do a Debug.Log but think about the signature of the event so you can apply it to your game!\n\n📚 Here are the resources I mentioned and/or brought up during the video 📚\n* Delegates: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/\n* Using Delegates: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/using-delegates\n* Unity Events: https://docs.unity3d.com/ScriptReference/Events.UnityEvent.htm\n* Singleton: https://en.wikipedia.org/wiki/Singleton_pattern\n\n[![Youtube Tutorial](./Video%20Screenshot.png)](https://youtu.be/1N6k7Hj_JKc)\n\n## Patreon Supporters\nHave you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks.\nHead over to https://patreon.com/llamacademy to show your support.\n\n### Phenomenal Supporter Tier\n* YOUR NAME HERE!\n\n### Tremendous Supporter Tier\n* YOUR NAME HERE!\n\n### Awesome Supporter Tier\n* Andrew Bowen\n* Gerald Anderson\n* AudemKay\n* Paul Berry\n* Matt Parkin\n* Ivan\n* YOUR NAME HERE!\n\n### Supporters\n* Bastian\n* Trey Briggs\n* YOUR NAME HERE!\n\n## Other Projects\nInterested in other AI Topics in Unity, or other tutorials on Unity in general? \n\n* [Check out the LlamAcademy YouTube Channel](https://youtube.com/c/LlamAcademy)!\n* [Check out the LlamAcademy GitHub for more projects](https://github.com/llamacademy)\n\n## Requirements\n* Requires Unity 2020.3 LTS or higher. \n","funding_links":["https://patreon.com/llamacademy"],"categories":["ShaderLab"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllamacademy%2Funity-csharp-basics-5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllamacademy%2Funity-csharp-basics-5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllamacademy%2Funity-csharp-basics-5/lists"}