项目介绍

QianMo/Unity-Design-Pattern 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,目前获得 4.7k 个 Star、992 次 Fork。

仓库全名
QianMo/Unity-Design-Pattern
Star 数
4.7k
Fork 数
992
未关闭 Issue
2

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Unity-Design-Pattern 用什么语言开发?

主要使用 C# 编写,目前有 4.7k 个 Star。

如何获取 Unity-Design-Pattern 的源码?

可以直接克隆仓库:git clone https://github.com/QianMo/Unity-Design-Pattern.git,默认分支为 master;安装与运行步骤见仓库 README。

Unity-Design-Pattern 最近还在维护吗?

仓库最近一次更新为 2020年2月6日,当前有 2 个未关闭 Issue;Star 数为 4.7k,可作为社区活跃度的参考。

关于

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

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

C#

README

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 行为型模式

Structural Patterns 结构型模式

Creational Patterns 创建型模式


II、Game Programming Patterns in Unity (《游戏编程模式》的Unity实现)

Reference resources(参考)

评论

暂无评论