Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Naphier/unity-design-patterns

Examples of programming design patterns in Unity C#
https://github.com/Naphier/unity-design-patterns

Last synced: 2 months ago
JSON representation

Examples of programming design patterns in Unity C#

Awesome Lists containing this project

README

        

# Welcome to Unity Design Patterns
### Examples of programming design patterns in Unity3D C#

Thanks to [Robert Nystrom's Game Programming Patterns][1]
and the examples found on [Rivello Multimedia's website][2].
Each pattern is contained in a separate folder. Inside these are a folder ("structure") to show what classes are used in the pattern's structure and a folder ("example") showing a real-world example of using the pattern in Unity3D along with a scene showing it in action.

As these are accomplished I plan to do a blog article on each. Once the articles are done they will be referenced in each pattern's readme.md.

Details on each pattern can be found in the Readme.md file in each pattern's folder.

Patterns done:

- [Command Pattern]
- [Abstract Factory Pattern]
- [Flyweight Pattern]
- [Builder Pattern]
- [Factory Method Pattern]
- [Decorator Pattern]
- [Strategy Pattern]

### Contributors Welcome
Please check out [contributors.md] if you'd like to help out with this project. It will take me forever to do all of these on my own and I'd love to have some help!

Patterns to do:

- Prototype
- Singleton (Monobehaviour derived and non-derived)
- Adapter
- Bridge
- Composite
- Facade
- Proxy
- Chain of Responsibility
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor

[1]: http://gameprogrammingpatterns.com/
[2]: http://www.rivellomultimediaconsulting.com/unity3d-csharp-design-patterns/
[command pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/command%20pattern
[abstract factory pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/abstract%20factory
[flyweight pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/flyweight%20pattern
[contributors.md]:https://github.com/Naphier/unity-design-patterns/blob/master/contributors.md
[builder pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/builder%20pattern
[factory method pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/factory%20method%20pattern
[decorator pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/decorator
[strategy pattern]:https://github.com/Naphier/unity-design-patterns/tree/master/Assets/strategy%20pattern