diff --git a/flixel/util/FlxTimer.hx b/flixel/util/FlxTimer.hx index 4f66b21eeb..45081f1563 100644 --- a/flixel/util/FlxTimer.hx +++ b/flixel/util/FlxTimer.hx @@ -30,7 +30,7 @@ class FlxTimer implements IFlxDestroyable * @param loops How many times the timer should go off. `0` means "looping forever". * @return The `FlxTimer` instance */ - public static inline function wait(time:Float, callback:(FlxTimer)->Void, loops = 1) + public static inline function wait(time:Float, onComplete:(FlxTimer)->Void, loops = 1) { return new FlxTimer().start(time, onComplete, loops); }