up version
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user