Enhance Your Game: EASY Enemy Logic Using Scriptable Objects (State Machine PART 2) | Unity Tutorial

Описание к видео Enhance Your Game: EASY Enemy Logic Using Scriptable Objects (State Machine PART 2) | Unity Tutorial

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) -   / sasquatchbgames  
Join our Discord Community! -   / discord  

In this Unity tutorial, We are taking our complete Finite State Machine that we setup for our enemies (you can find the full video for that HERE:    • A Better Way to Code Your Characters ...  ) And take it to the next level by moving our logic out of the states themselves, and into ScriptableObjects. This will allow us to have logic we can literally drag and drop into the inspector, and we'll built in in such a way that you can MIX AND MATCH different behaviors for each state, allowing you to rapidly come up with a HUGE variety of enemy behaviors!

Link to Download the FREE 2D Asset Pack seen in this tutorial:
https://veilofmaia.com/tutorial-asset...
---
In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: https://assetstore.unity.com?aid=1100lwgBQ
---

Contents of This Video: ------------------------------------------

00:00 - Intro
00:43 - Setting up the ScriptableObject Base Classes
04:34 - Changes to the Enemy Base Script
05:47 - Refactoring the Idle State Logic
07:04 - Refactoring the Chase State Logic
07:35 - Refactoring the Attack State Logic
08:15 - Calling the ScriptableObject logic from the States
08:54 - Testing Things Out
09:35 - Creating One More Idle State
10:04 - Creating One More Chase State
10:37 - Testing the States With 2 Enemies

Who We Are-------------------------------------

If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.

Wishlist our Games:
Wishlist Veil of Maia! - https://store.steampowered.com/app/19...
Wishlist Samurado!
https://store.steampowered.com/app/23...

Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!

Follow us on Twitter for regular updates!
  / sasquatchbgames  


#unitytutorial #unity2d #unity3d

Комментарии

Информация по комментариям в разработке