コード例 #1
0
 void GameOver()
 {
     game.Reset();
     faceBasicDetections.Reset();
     enemiesManager.Reset();
     itemsManager.Reset();
 }
コード例 #2
0
    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();
    }