How to create a Cooldown Manager for your Spells and Abilities - Unity

  Рет қаралды 4,723

Dapper Dino

Dapper Dino

Күн бұрын

Help to support the channel if you are feeling super kind: / dapperdino
Join our Discord: / discord
• Unite Austin 2017 - Ga...
• Unite 2016 - Overthrow...
In this video I show you how to create a cooldown manager for your spells and abilities in your game.
-----------------------------------------------------------------------------------------------------------
If you liked the video then please respond with a like and a subscribe to show your support for the channel and I'll repay you by creating more tutorials to teach you the wonder that is Unity :D

Пікірлер: 5
@fraznn23
@fraznn23 6 жыл бұрын
public bool IsSpellReady(){ return currentCooldown
@manuelgraca-gamedev7822
@manuelgraca-gamedev7822 3 жыл бұрын
For anyone who might be having troubles with the currentCooldown variable not resetting after stop play or something to do with that, simply go to ur scriptable object script and call OnEnable() and reset the currentCooldown should look like this className : ScriptableObject { ... vars ... OnEnable() { currentCooldown = 0f; } }
@322ss
@322ss 6 жыл бұрын
Thanks for the video. Maybe I missed it but what is your strategy for unique spells? I'm asking as you have counter in SO, and that would/could be shared between the player and NPCs. AFAIK you can instance ScriptableObjects but I have no idea how well that work...
@jonatansan01
@jonatansan01 6 жыл бұрын
Isn't tricky to remove spells from spellsOnCooldown while iterating over it ? All spells from the rest of the list will be shift to the left, so that the i+1th spell will not be updated that frame. This should not cause too much problem with an high framerate and few spells to update, but it could have undesired effect on some edge cases.
@Osirus1156
@Osirus1156 6 жыл бұрын
FYI if you click on the little drop-down button next to the padlock icon at the top right of the inspector and click 'Debug' you can view Private fields and properties in the inspector.
How to create a Damage Over Time Handler - Unity
22:29
Dapper Dino
Рет қаралды 12 М.
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 10 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 67 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 70 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 186 М.
Making a Cooldown UI - Easy how to Unity Tutorial
17:42
Destined To Learn
Рет қаралды 21 М.
Scriptable Abstract Abilities
10:53
Jason Weimann
Рет қаралды 9 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,7 МЛН
Software Architecture in Unity
7:13
Jason Storey
Рет қаралды 118 М.
OBJECT POOLING in Unity
17:23
Brackeys
Рет қаралды 431 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 715 М.
Simple Skill Tree in Unity (Unlock Abilities, Talents)
25:53
Code Monkey
Рет қаралды 80 М.
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 10 МЛН