Training now works

This commit is contained in:
Segey Lapin
2019-08-08 17:32:47 +03:00
parent 394237cec3
commit 95a76feb53
19 changed files with 1756 additions and 559 deletions

View File

@@ -61,6 +61,11 @@ func start_training(ball):
ball_game.set_main(self)
ball_game.start_game()
add_child(ball_game)
ball_game.connect("stopped_game", self, "stop_training")
func stop_training(score):
print("score:", score)
ball_game.queue_free()
world.team_train_count += 1
func _ready():
var tstart = $nav/navmesh/level_level