Start visio with user colision

When user enter in colision with other colision, webrtc start visio
This commit is contained in:
gparant
2020-04-26 19:59:51 +02:00
parent d7d7be9ed0
commit 707931724f
4 changed files with 20 additions and 16 deletions
+1
View File
@@ -253,6 +253,7 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface{
//init colision
this.physics.add.collider(this.CurrentPlayer, player, (CurrentPlayer: CurrentGamerInterface, MapPlayer: GamerInterface) => {
CurrentPlayer.say("Hello, how are you ? ");
this.GameManager.startWebRtc();
});
}
}