up version

This commit is contained in:
2019-03-26 21:34:59 +03:00
parent fd0e2382d0
commit d2f23e7777
5 changed files with 32 additions and 40 deletions

View File

@@ -30,7 +30,7 @@ import ru.m.tankz.preset.DotaGame;
var tankType = playerConfig.tanks[0].type;
var tankConfig = resultState.config.getTank(tankType);
view.tank = tankConfig == null ? 'ba' : tankConfig.skin;
view.color = resultState.config.getColor(player.id);
view.color = resultState.getPlayerColor(player.id);
view.life = player.frags;
view.score = player.score;
return view;

View File

@@ -75,7 +75,7 @@ class GameFrame extends GroupView {
public function onGameComplete(state:GameState):Void {
result = state;
state = switch game.next() {
this.state = switch game.next() {
case Some(s): s;
case None: null;
}