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

Come on guys…