Fix, current player say
authorgparant <g.parant@thecodingmachine.com>
Mon, 13 Apr 2020 13:35:38 +0000 (15:35 +0200)
committergparant <g.parant@thecodingmachine.com>
Mon, 13 Apr 2020 13:35:38 +0000 (15:35 +0200)
front/src/Phaser/Game/GameScene.ts

index 69b5a71246642b8baadb11ff63ede11f1d7e298a..8665fd2f5a2c3774c948a67600398ccee66112c1 100644 (file)
@@ -218,7 +218,7 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface{
 
         //init colision
         this.physics.add.collider(this.CurrentPlayer, player, (CurrentPlayer: CurrentGamerInterface, MapPlayer: GamerInterface) => {
-            MapPlayer.say("Hello, how are you ? ");
+            CurrentPlayer.say("Hello, how are you ? ");
         });
     }
 }