Merge branch 'master' of bitbucket.org:cybafelo/r3-custom-code
commit
2793a0982b
|
@ -394,15 +394,25 @@ R3.CustomCode.prototype.move = function(data) {
|
|||
this.footballPlayer.instance.translateY(this.playerY);
|
||||
this.football.instance.position.y = this.ballY;
|
||||
|
||||
this.mouseMove.entityLoaded = this;
|
||||
this.touchMove.entityLoaded = this;
|
||||
this.beforeRender.entityLoaded = this;
|
||||
|
||||
R3.Event.Emit(
|
||||
R3.Event.PLAY_AUDIO,
|
||||
{
|
||||
name : 'Audio - Crowd'
|
||||
|
||||
R3.Event.Subscribe(
|
||||
R3.Event.GAME_START,
|
||||
function() {
|
||||
|
||||
R3.Event.Emit(
|
||||
R3.Event.PLAY_AUDIO,
|
||||
{
|
||||
name : 'Audio - Crowd'
|
||||
}
|
||||
);
|
||||
|
||||
this.mouseMove.entityLoaded = this;
|
||||
this.touchMove.entityLoaded = this;
|
||||
this.beforeRender.entityLoaded = this;
|
||||
}
|
||||
);
|
||||
|
||||
R3.Event.Emit(R3.Event.GAME_LOADED);
|
||||
|
||||
//@ sourceURL=entityLoaded.js
|
||||
|
|
Loading…
Reference in New Issue