Loic.QianMo.Unity-Design-Pattern
1.0.0
dotnet add package Loic.QianMo.Unity-Design-Pattern --version 1.0.0
NuGet\Install-Package Loic.QianMo.Unity-Design-Pattern -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Loic.QianMo.Unity-Design-Pattern" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Loic.QianMo.Unity-Design-Pattern" Version="1.0.0" />
<PackageReference Include="Loic.QianMo.Unity-Design-Pattern" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Loic.QianMo.Unity-Design-Pattern --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Loic.QianMo.Unity-Design-Pattern, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Loic.QianMo.Unity-Design-Pattern&version=1.0.0
#tool nuget:?package=Loic.QianMo.Unity-Design-Pattern&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Design Patterns Written in Unity3D
This repository is about cool design patterns written in Unity3D C#.
- Now 23 Gang of Four Patterns have all been finished in Unity3D in this repository.
- Each pattern contains the corresponding structure implementations, application examples and diagrams. Same way with Naphier/unity-design-patterns, in this repository 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 in Unity3D(with a scene) and a folder or folders ("Example") showing one or more real-world example of using the pattern in Unity3D along with a scene showing it in action. Each pattern folder may contain one or more Example.
- Game design patterns from book Game Programming Patterns have been partially implemented.
此repo为Unity3D中各种设计模式的实践与运用。
- 目前已经在Unity中实现了《设计模式:可复用面向对象软件的基础》一书中提出的23种设计模式。
- 每种模式都包含对应的结构实现、应用示例以及图示介绍。类似Naphier/unity-design-patterns的结构,此repo中的每种模式用单独的文件夹分开。每种模式对应的文件夹中包含了名为“Structure”的子文件夹,里面存放的是此模式在Unity中的使用代码的基本框架实现,而另外包含的Example子文件夹中存放的是此模式在Unity中使用的实际示例。每种框架实现或实例示例实现都包含对应的场景,每种模式文件夹中可能包含一个或者多个Example。
- 《游戏编程模式》一书中介绍的常用游戏设计模式的Unity版实现也有部分实现。
Contents
I、Gang of Four Patterns in Unity (23种GOF设计模式的Unity实现)
Behavioral Patterns 行为型模式
- Command Pattern 命令模式
- State Pattern 状态模式
- Observer Pattern 观察者模式
- Chain of Responsibility Pattern 责任链模式
- Mediator Pattern 中介者模式
- Interpreter Pattern 解释器模式
- Iterator Pattern 迭代器模式
- Memento Pattern 备忘录模式
- Strategy Pattern 策略模式
- Template Method Pattern 模板方法模式
- Visitor Pattern 访问者模式
Structural Patterns 结构型模式
- Adapter Pattern 适配器模式
- Bridge Pattern 桥接模式
- Composite Pattern 组合模式
- Decorator Pattern 装饰模式
- Facade Pattern 外观模式
- Flyweight Pattern 享元模式
- Proxy Pattern 代理模式
Creational Patterns 创建型模式
- Prototype Pattern 原型模式
- Singleton Pattern 单例模式
- Abstract Factory Pattern 抽象工厂模式
- Builder Pattern 建造者模式
- Factory Method Pattern 工厂方法模式
<br>
II、Game Programming Patterns in Unity (《游戏编程模式》的Unity实现)
- Subclass Sandbox Pattern 子类沙盒模式
- Type Object Pattern 类型对象模式
- Component Pattern 组件模式
- Event Queue Pattern 事件队列模式
- Game Loop Pattern 游戏循环模式
- Service Locator Pattern 服务定位器模式
- Data Locality Pattern 数据局部性模式
- Dirty Flag Pattern 脏标记模式
- Object Pool Pattern 对象池模式 <br>
Reference resources(参考)
- http://gameprogrammingpatterns.com/
- https://www.youtube.com/playlist?list=PLF206E906175C7E07
- https://github.com/Naphier/unity-design-patterns
- http://www.dofactory.com/net/design-patterns
- https://sourcemaking.com/design_patterns
- http://www.habrador.com/tutorials/programming-patterns/
- Gang of Four Patterns
- Head First Design Patterns
- 设计模式与游戏完美开发
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 2 | 7/31/2021 |