mirror of
https://github.com/wassname/phaser.git
synced 2026-06-30 16:40:20 +08:00
Fixed load add
This commit is contained in:
+2
-1
@@ -309,7 +309,7 @@ module Phaser {
|
||||
//this.physics = new Phaser.Physics.Manager(this);
|
||||
this.plugins = new Phaser.PluginManager(this, this);
|
||||
|
||||
this.load.onLoadComplete.addOnce(this.loadComplete, this);
|
||||
this.load.onLoadComplete.add(this.loadComplete, this);
|
||||
|
||||
this.setRenderer(Phaser.Types.RENDERER_CANVAS);
|
||||
|
||||
@@ -464,6 +464,7 @@ module Phaser {
|
||||
else
|
||||
{
|
||||
// Start the loader going as we have something in the queue
|
||||
this.load.onLoadComplete.add(this.loadComplete, this);
|
||||
this.load.start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user