MENU

Fun & Interesting

Weapon Movement - Multi-Weapon System in Unity - Part 7

Bardent 5,152 2 years ago
Video Not Working? Fix It Now

In this part we take a look at how we can define what a weapons movement should look like. We do this by creating a Movement weapon component that listens for animations events and uses the characters core to make it move. 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 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/f1e40c39c4d3133f37287b517fbe1d25d60716e8 GitHub Repo Link: https://github.com/Bardent/Weapon-System-Tutorial-Series-Unity Weapon System Series: https://www.youtube.com/playlist?list=PLy78FINcVmjDeHVYh8SMjEP1B_MdSLCSz Player Controller Series: https://www.youtube.com/playlist?list=PLy78FINcVmjA0zDBhLuLNL1Jo6xNMMq-W 00:00 - Introduction 00:30 - Creating the Movement Weapon Component 00:55 - Changing the Core system's namespace 03:15 - How does the Movement Weapon Component Work? 03:55 - Creating the Start and Stop Movement events 05:18 - Accessing the AnimationEventHandler in weapon components 06:35 - Subscribing to the events in Movement 08:09 - Creating MovementData class 10:05 - Creating the MovementData class 10:57 - Referencing the Core From Weapon 14:11 - Setting the Core Reference 15:13 - Referencing the Movement Core Component 17:48 - Referencing MovementData in Movement 19:47 - Adding Movement Data to Weapon Data List 20:47 - Fix SO Asset Issues because of renaming 22:54 - Adding MovementData to List 24:01 - Adding Movement Components to the Weapons 24:34 - Setting up the Animation Events 25:45 - Testing Attempt 1 :) 26:02 - Fixing Sequencing Issue 27:36 - Testing Attempt 2 :D 28:05 - Final Thoughts 29:05 - Outro

Comment