Question by
maund007 · Jun 07, 2016 at 05:32 PM ·
c#programming
InvokeRepeating parsing a value
void Start () {
InvokeRepeating("ChangeHealth(-2f)",2f,1f);
}
void ChangeHealth(float ChangeHealthValue){
CurrentHealth += ChangeHealthValue;
print(CurrentHealth)
}
I'm trying to parse a value through InvokeRepeating, but I have no idea how to get it to work, I'd be happy to hear if anyone knows how to.
Comment
Ummmm.... what's the question? Is this code not perfor$$anonymous$$g how you expect? What do you expect? What is the actual result, and how are they different?
Your answer
Follow this Question
Related Questions
Object with rigidbody2D doesn't move when it's supposed to, 0 Answers
Help with pause menu? 0 Answers
Coding Errors 1 Answer
How to add alternate idle directions to a top-down game 0 Answers
Gameobject wont set active 0 Answers