Back to Browse

Separating weapon logic and data - Multi-Weapon System in Unity - Part 6

15.4K views
Nov 23, 2022
20:47

In this part we start laying the foundations for out weapon data scriptable object and take a look at how we structure weapon component data. All Assets: https://drive.google.com/drive/folders/17JbMy70gbXLcPYrIIpwYt7xJmKngu0oB?usp=sharing Discord Server: https://discord.gg/uHQrf7K If you wish to support me more: https://www.patreon.com/Bardent GitHub link for this part: https://github.com/Bardent/Weapon-System-Tutorial-Series-Unity/tree/ace4485e0309eb4f21a39c3dd7708dc36797dbe2 GitHub Repo Link: https://github.com/Bardent/Weapon-System-Tutorial-Series-Unity Player Controller Series: https://www.youtube.com/playlist?list=PLy78FINcVmjA0zDBhLuLNL1Jo6xNMMq-W 00:00 - Intro 00:47 - Creating the WeaponDataSO 02:08 - Moving NumberOfAttacks to the Data SO 03:17 - Using Weapon Data In Weapon 03:52 - Component Data 05:24 - Creating the Component Data base class 06:11 - Creating the WeaponSpriteData class 06:59 - Creating the AttackSprites attack data class 08:00 - Using AttackSprites in WeaponSpriteData 08:27 - Using WeaponSpriteData in WeaponSprite class 09:25 - Creating the SO Assets 10:34 - Serializing the Data 11:29 - Creating the ComponentData list 12:44 - Create context menu to add the class we want 15:41 - Adding Sprites to the weapon data... again :) 16:44 - Getting the Data to the WeaponSprite component 18:30 - Testing it out :) 19:32 - Final Thoughts

Download

0 formats

No download links available.

Separating weapon logic and data - Multi-Weapon System in Unity - Part 6 | NatokHD