Strangler Fig, Introducing Seams and Wrap Method are just some of the refactoring techniques that will help you level up your code and help you start to think in Systems, identify where to use Patterns and uphold the Principles of Software Engineering in your Games. We're revising Stats and Modifiers to add optimizations and new features suggested by the community!
Last week's video for reference: • EASY Stats and Modifiers in Unity | B...
Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials / @git-amend
Discord: / discord
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Rules of Refactoring
1:20 Strangler Fig
2:04 Refactor 1: Linked List to List
7:22 Introducing Seams
7:55 Refactor 2: Stat Modifier Factory
11:35 Refactor 3: Operation Strategy
15:00 Refactor 4: Operations in Order
17:17 Wrap Method
20:00 Refactor 5: Caching
Source code: https://github.com/adammyhre/Unity-St...
Assets Shown In This Video (Affiliate Links)
Dungeon Mason Tiny Hero Duo: (FREE): https://assetstore.unity.com/packages...
Tiny Heroes: https://assetstore.unity.com/packages...
Hierarchy Icons: https://assetstore.unity.com/packages...
Better Transform: https://assetstore.unity.com/packages...
Better Mesh Filter: https://assetstore.unity.com/packages...
Kyeoms VFX: https://assetstore.unity.com/publishe...
Pure Nature 2 : Mountains: https://assetstore.unity.com/packages...
HIGHLANDS - Stylized Environment: https://assetstore.unity.com/packages...
Damage Numbers Pro: https://assetstore.unity.com/packages...
Follow me!
https://linktr.ee/gitamend