first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
initialized = true;
|
||||
}
|
||||
Reference in New Issue
Block a user