Exemplo n.º 1
0
 public void AddPlayerListener(ControllerPlayer controller)
 {
     RegisterInputComponent(controller.GetInputComponent(), controller.GetControls());
     controller.OnPlayerDeath += RemoveInputComponent;
 }
 public void RemovePlayerController(ControllerPlayer player, InputComponent inputComponent, Controls controls)
 {
     GameApplication.Instance.players.Remove(player);
     ReSpawnPlayer(player.GetControls());
 }