In documentation of Scheduler, the schedule method has the following description:
The scheduled method will be called every ‘interval’ seconds.
If paused is YES, then it won’t be called until it is resumed.
If ‘interval’ is 0, it will be called every frame, but if so, it recommended to use ‘scheduleUpdateForTarget:’ instead.
If the callback function is already scheduled, then only the interval parameter will be updated without re-scheduling it again.
repeat let the action be repeated repeat + 1 times, use cc.macro.REPEAT_FOREVER to let the action run continuously
delay is the amount of time the action will wait before it’ll start
however if I log cc.director().getScheduler().scheduleUpdateForTarget it returns undefined
it this function even exists?