Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class 'GUITestBed' (GUIScript)
- /*
- The result of this code is any saved changes to GUITestBed.lua will be detected resulting in this console output:
- <<<<< GUITestBed:Uninitialize()
- >>>>> GUITestBed:Initialize()
- */
- local initializeCalled = false
- function GUITestBed:Initialize()
- initializeCalled = true
- Print(">>>>> GUITestBed:Initialize()")
- end
- function GUITestBed:Uninitialize()
- Print("<<<<< GUITestBed:Uninitialize()")
- end
- function GUITestBed:OnCodeReload()
- self:Uninitialize()
- self:Initialize()
- end
- function GUITestBed:Update(deltaTime)
- if not initializeCalled then
- self:OnCodeReload()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement