top of page

Unity Design Patterns

Semester Class

Highlights from a class I took in 2020 on coding design patterns with implementation in Unity. Projects were due each week based on a different design patterns.

solar_system.PNG

This game mechanic was created with the composite pattern. The user may pause/resume the orbits of the celestial objects and hide/show their labels.

Click here to view code

UML Diagram

Composite Pattern UML.png
stealth_1.PNG

This game mechanic was created with the observer pattern. The player may sneak which lowers the guards' cones of vision and detection radius.

Click here to view code

UML Diagram

Observer UML.png
simple_factory.PNG

This game mechanic was created with the simple factory pattern. The user may breed horses by combining a chosen horse with the current horse to produce a new horse based on the dominant and recessive genes of the head, body, and tail type.

Click here to view code

Simple Factory UML.png

UML Diagram

design_patterns_ex.PNG

This game mechanic was created with the facade pattern. The player decides their team then attempts to capture two points. When a point is captured, all npcs respawn and the point moves.

Click here to view code

UML Diagram

Facade UML.png
bottom of page