First, Phantom, I assume all references to OnLoad should be replaced with OnUpdate. Otherwise, I am a bit lost.
However. in the first part of your example it is fairly obvious that the OnUpdate function is being passed two arguments - self and elapsed - explicitly.
In the rewritten version, where only the function name is declared, do we know what parameters the function will actually receive?
Last edited by Elderin : 11-15-12 at 11:43 PM.
|