add commands to execution list and execute them
Hey Guys, I got another Question.
I got a simple Script for Health and Shield, that also lets health and Shield regenerate.
But if the regenerateHealth/Shield values are 0, I want update to do nothing.
So my question is, how do I let Update execute commands in the list like
string[] commandList = ["RegenerateHealth","RegenerateShield"]
I figured it might be more CPU-intensive than to just check if the regeneration Values are 0. But now I just want to know it.
Thanks :-*
P.S. The Markdown is weird
Comment
Your answer
Follow this Question
Related Questions
Error with list of lists in custom editor 0 Answers
How Can I Download Multiple Files With Unity Web Request? 0 Answers
LoadScene not working 1 Answer
Hide or show objects in a list not working correctly 1 Answer
NullRefException at Index 0 in list 0 Answers