https://github.com/rabadash8820/gdex2021_singletonpattern
Source code of the "Flappy Bird" clone for my GDEX 2021 talk "The Singleton Pattern: You're Doing it Wrong"
https://github.com/rabadash8820/gdex2021_singletonpattern
clone csharp unity
Last synced: about 2 months ago
JSON representation
Source code of the "Flappy Bird" clone for my GDEX 2021 talk "The Singleton Pattern: You're Doing it Wrong"
- Host: GitHub
- URL: https://github.com/rabadash8820/gdex2021_singletonpattern
- Owner: Rabadash8820
- License: mit
- Created: 2021-09-06T02:06:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T14:34:16.000Z (over 1 year ago)
- Last Synced: 2025-02-20T15:36:21.203Z (over 1 year ago)
- Topics: clone, csharp, unity
- Language: C#
- Homepage:
- Size: 11.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Singleton Pattern: You're Doing It Wrong
## Overview
This repo contains all source code and assets from my GDEX 2021 presentation _The Singleton Pattern: You're Doing It Wrong_. Watch the [recording](https://1drv.ms/v/c/41f178ba39bc3d9c/IQRILi9HfhTFTp7xVH--mCLhAavAHTVzodaqeUhESBEDbcY) of the talk for background. Slides are available on [One Drive](https://1drv.ms/p/s!Apw9vDm6ePFBgdJ2ImHZWF45mAWEOg?e=3wzH34).
The Unity project is contained in the `FlappyClone/` folder. It consists of a single scene `scenes/main.unity` with several root GameObjects, the most important three being:
1. `basic-singletons`
2. `static-singletons`
3. `di-singletons`
Activating/deactivating these root objects will toggle which of the three approaches are used to handle dependencies in the script code: basic component references, static singletons, or dependency injection.
The game itself is a basic _Flappy Bird_ clone:

## License
The files in this repo are released under the MIT license. See [LICENSE](./LICENSE).