Skip to content

Commit

Permalink
OnUnload will call now! :D
Browse files Browse the repository at this point in the history
  • Loading branch information
ynohtna92 committed Jun 12, 2015
1 parent b40432a commit 3833a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified resource/flash3/CustomUI_Timer.swf
Binary file not shown.
3 changes: 2 additions & 1 deletion src/Timer_Module.as
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ package {
Globals.instance.resizeManager.AddListener(this);

this.timer.setup(this.gameAPI, this.globals);
this.gameAPI.OnUnload = OnUnload;

trace("## Custom UI loaded!");
}

//this function is called when the UI is unloaded
public function onUnload() : Boolean {
public function OnUnload() : Boolean {
this.timer.kill();
trace("## Custom UI unloaded!");
return true;
Expand Down

0 comments on commit 3833a3a

Please sign in to comment.