Thụy ĐiểnHabrador/Unity-Programming-Patterns
Implementations of programming design patterns in Unity with examples in C# when to use them.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tháng
#1 Repository Của Tháng
#1 Repository Của Tuần
🎮 Từ Command đến Object Pool: Bộ công cụ design patterns thiết yếu cho dự án Unity
Tập hợp 20+ mẫu thiết kế lập trình trong Unity bằng C#, từ nổi tiếng (Singleton, Observer) đến hiếm dùng (Dirty Flag, Spatial Partition).
Đây là kho lưu trữ mã nguồn minh họa cách áp dụng các design patterns trong Unity, chủ yếu tham khảng từ cuốn Game Programming Patterns. Dự án giúp bạn hiểu không chỉ là what mà còn when và why nên dùng từng pattern — tránh dùng chúng như công cụ bế tắc.
✨ Điểm nổi bật
- 23 patterns được triển khai: từ Command, State, Observer đến Double Buffer, Bytecode, Spatial Partition.
- Ví dụ thực tế trong Unity: mỗi pattern đi kèm mô tả ngắn và mã nguồn minh họa.
- Chia thành 3 nhóm: Architectural (MVC), Design (Singleton), Anti-patterns (God Object).
- Tập trung vào game development: không phải toàn bộ design patterns chung, mà là những gì thực sự áp dụng được trong lập trình game.
- Nguồn tham khảo đa dạng: kèm link đến sách, blog và tài liệu liên quan để đọc sâu.
💡 Vì sao đáng chú ý
Không phải là thư viện dùng sẵn, mà là kho tài nguyên học tập. Bạn được phép tùy biến, thử nghiệm cách triển khai để phù hợp với dự án thực tế. Đặc biệt hữu ích cho nhà phát triển đang tìm hiểu cách cấu trúc code sạch trong Unity.
#Unity3D #DesignPatterns #CSharp #GameDevelopment #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
:tea: All Gang of Four Design Patterns written in Unity C# with many examples. And some Game Programming Patterns written in Unity C#. | 各种设计模式的Unity3D C#版本实现
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.
UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code. Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!