|
1 | | -# UnityCodePatterns |
| 1 | +# Unity Common Code Patterns Repository |
| 2 | + |
| 3 | +This repository contains examples and explanations of common code patterns used in Unity game development. The goal is to provide clear, practical implementations of these patterns to help developers understand and apply them in their projects. |
| 4 | + |
| 5 | +## Implemented Patterns |
| 6 | + |
| 7 | +- [x] [Model-View-Controller (MVC)](https://github.com/freddynewton/UnityCodePatterns/blob/main/Assets/01.%20Scripts/MVC/MVC%20Pattern.md) |
| 8 | +- [x] [Singleton](https://github.com/freddynewton/UnityCodePatterns/blob/main/Assets/01.%20Scripts/Singleton/Singleton%20Pattern.md) |
| 9 | +- [x] [Object Pooling](https://github.com/freddynewton/UnityCodePatterns/blob/main/Assets/01.%20Scripts/Object%20Pooling/Object%20Pooling%20Pattern.md) |
| 10 | + |
| 11 | +## Planned Patterns (Not Yet Implemented) |
| 12 | + |
| 13 | +- [ ] Observer |
| 14 | +- [ ] State Machine |
| 15 | +- [ ] Command Pattern |
| 16 | +- [ ] Factory Method |
| 17 | +- [ ] Strategy Pattern |
| 18 | +- [ ] Service Locator |
| 19 | +- [ ] Dependency Injection |
| 20 | +- [ ] Decorator Pattern |
| 21 | +- [ ] Flyweight Pattern |
| 22 | + |
| 23 | +## Contributing |
| 24 | + |
| 25 | +Contributions are welcome! If you'd like to add more patterns or improve existing examples, please submit a pull request. |
| 26 | + |
| 27 | +## License |
| 28 | + |
| 29 | +This project is licensed under the MIT License - see the LICENSE file for details. |
| 30 | + |
| 31 | +Citations: |
| 32 | +[1] https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/47281949/206794ea-db2a-4fb7-bfb6-ff484114cc0d/InventoryView.cs |
| 33 | +[2] https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/47281949/22c7a3ae-232f-470d-a98d-a588421f722e/InventoryModel.cs |
| 34 | +[3] https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/47281949/87e27fa1-4a11-49f8-8f92-31bc88ea322a/InventoryController.cs |
| 35 | +[4] https://github.com/freddynewton/UnityCodePatterns/blob/main/Assets/01.%20Scripts/MVC/MVC%20Pattern.md |
| 36 | +[5] https://github.com/freddynewton/UnityCodePatterns/blob/main/Assets/01.%20Scripts/Object%20Pooling |
0 commit comments