Hey guys,

Quick question. I am using an InvokeRepeating to decrease my score every 5 seconds. When my score reaches 0, I use CancelInvoke to prevent it from going lower than 0. But if I then change my score, the InvokeRepeating won’t start again because it has been canceled when my score reached 0. How do I re-enable my InvokeRepeating after using CancelInvoke?

Thanks,

Don’t use CancelInvoke, simple put in your function a check if the value is equal or less than zero before reduce the score.