Beispiel #1
0
    void CreateObstacle(Collectible.Type type, int x, int y)
    {
        var newObstacle = new Interractable(atlas, type);

        newObstacle.MoveTo(x, y);
        obstacles.Add(newObstacle);
    }
Beispiel #2
0
    void CreateObstacle(Collectible.Type type, GridPosition pos)
    {
        var newObstacle = new Interractable(gameAtlas, type);

        newObstacle.MoveTo(pos);
        Target.Add(newObstacle);
    }