百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

Unity-Design-Pattern

> 设计协作
开源

: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#版本实现

4.7K stars0 点赞4 次浏览
访问官网GitHub

工具介绍

: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#版本实现

在 Unity3D 中编写的设计模式 此仓库主要介绍了使用 Unity3D C# 编写的各种酷炫的设计模式。 * 目前已在本仓库中完成了 23 种 [四人帮模式]。 * 每种模式都包含相应的结构实现、应用示例和图表。与 [Naphier/unity-design-patterns] 类似,本仓库中的每种模式都放在一个单独的文件夹中。这些文件夹中包含一个文件夹 ("Structure"),用于展示在 Unity3D 中模式结构中使用的类(附带场景),以及一个或多个文件夹 ("Example"),用于展示在 Unity3D 中使用模式的一个或多个真实世界示例,并附带展示其运行情况的场景。每个模式文件夹可能包含一个或多个 "Example" 文件夹。 * 从《游戏编程模式》一书中选取的游戏设计模式已部分实现。

  • 此 repo 实现了《[设计模式:可复用面向对象软件的基础]》一书中提出的 23 种设计模式。每种模式都包含相应的结构实现、应用示例以及图示介绍。类似 [Naphier/unity-design-patterns] 的结构,此 repo 中的每种模式都以单独的文件夹分开。每种模式对应的文件夹中都包含名为 "Structure" 的子文件夹,其中存放的是此模式在 Unity 中使用的基本框架实现,另外包含的 "Example" 子文件夹中存放的是此模式在 Unity 中使用的实际示例。每种框架实现或示例实现都包含相应的场景,每种模式文件夹中可能包含一个或多个 "Example"。

Contents

I、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 访问者模式]

Creational Patterns 创建型模式

  • [Prototype Pattern 原型模式]
  • [Singleton Pattern 单例模式]
  • [Abstract Factory Pattern 抽象工厂模式]
  • [Builder Pattern 建造者模式]
  • [Factory Method Pattern 工厂方法模式]

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#bridge-patterncommand-patterncsharp-design-patternscsharp-resources

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类设计协作
定价开源

> 相关工具

F
Figma
协作式界面设计工具
S
sketch-wakatime
Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
Q
QuickColor
Quickly apply fills from the global or document color palettes to selected elements - 🎨