Exemple #1
0
    private void AddBomb(Vector2 position)
    {
        // TODO : Validate position before adding

        var createdBomb = (Bomb)bombScene.Instance();

        createdBomb.Position = position;



        bombsContainer.CallDeferred("add_child", createdBomb);
        bombs.Add(createdBomb);

        GD.Print($"Nb children : {bombsContainer.GetChildCount()}");
    }