Building Mechanics with State Pattern in Unity

ACDev
ACDev
1.3 هزار بار بازدید - 2 سال پیش - In this video we use
In this video we use an enum-based State Pattern to see how we can add object behavior that changes based on the object's state. You should be able to use this technique in your own mechanics!

This is a link to the class-based State Pattern mentioned in the video:
State Pattern in Unity

00:00 - Intro
00:37 - Level Setup
03:08 - Enum vs Class
05:10 - State Architecture
10:21 - Implementing States
20:50 -Dependencies
24:22 - State Behavior
28:03 - Review
2 سال پیش در تاریخ 1401/03/24 منتشر شده است.
1,383 بـار بازدید شده
... بیشتر