KwDispatcher.RegUpdate

This method adds a function to a OnUpdate handler.

The function is called every OnUpdate cycle and has one parameter which is the elapsed time.

Arguments

 * addonName
 * string - The name of your addon.
 * func
 * function - The function is added to the OnUpdate handler.

Returns

 * nil
 * void - A method call without return value.

Example
function OnUpdate(time) --do something end

kwDispatcher.RegUpdate("Example",OnUpdate)