Пример #1
0
    public void SetParentTile(WorldTile parent)
    {
        Assert.IsNull <WorldTile>(_parentTile, "Tried to set another parent: " + _col + "x" + _row);
        Assert.IsTrue(parent != this, "Tried to set parent to ourself: " + _col + "x" + _row);

        _parentTile = parent;
        _parentTile.AddChildTile(this);
    }