Пример #1
0
    static public Immovable PlaceInstance(Immovable proto, Tile tile)
    {
        Immovable obj = proto.Clone();

        obj.tile = tile;

        // placing the object in the tile
        if (tile.PlaceObject(obj) == false)
        {
            return(null);
        }
        //Debug.Log(obj.objectType);
        return(obj);
    }