void GameOver() { game.Reset(); faceBasicDetections.Reset(); enemiesManager.Reset(); itemsManager.Reset(); }
public void FinishLoading() { boardInstance = (Board)board.Instance(); boardInstance.Position = scene.GetNode <Node2D>("BoardSpawnPoint").Position; ballInstance = (Ball)ball.Instance(); ballInstance.Board = boardInstance; ballInstance.Position = scene.GetNode <Node2D>("BallSpawnPoint").Position; scene.AddChild(boardInstance); scene.AddChild(ballInstance); boardInstance.Spawn(); enemiesManager.Reset(); Unpause(); }