Question by
dragon081223 · Jul 19, 2019 at 02:13 PM ·
scripting probleminputprefabscooldown
How to sync "cooldown timer" across multiple prefabs
Hi all,
I'm currently making a game and am stuck on trying to implement a cooldown system for prefabs on the player that shoots projectiles. The problem I'm running in right now is that if I keep the cooldown mechanic inside the prefab that shoots, the cooldown time is not synced and therefore each prefab shoots according to their own time. I've tried using the observer design pattern but am stuck on using the inspector to reference a script that implements an interface for polymorphism.
Comment
Your answer
Follow this Question
Related Questions
Getting mouse input in screen (0,0) and drag mouse 0 Answers
Connecting Prefabs together to make one Prefab via script? 0 Answers
How do I set a default target? 2 Answers
HELP ! Highscore name input after each Death 0 Answers
Movement Sticking 0 Answers