+ 1

Does InvokeRepeating override itself?

unity c# if i make a script, attach etc and i create a function in it: void func(){//things to execute}. and is repeat it with this: InvokeRepeating("func", .5f, 3.5f); does it override itself when i do this? : InvokeRepeating("func", .5f, 1.5f) thank you in forward.

8th Apr 2018, 5:57 PM
NameMe
NameMe - avatar
2 Answers
+ 2
You can use this first: Cancellnvoke("func"); And start the new Invoke after that.
12th Jan 2019, 11:21 AM
srkx
srkx - avatar
0
Thanks you, it now overrides itself thank u😄
13th Jan 2019, 12:16 PM
NameMe
NameMe - avatar