예제 #1
0
        public void UpdateTile(TileObject tile, TileDefinition definition)
        {
            var pos = tileManager.GetIndexAt(tile.transform.position);

            CmdUpdateTile(pos.x, pos.y, definition);
        }
예제 #2
0
        public void DestroyTile(TileObject tile)
        {
            var pos = tileManager.GetIndexAt(tile.transform.position);

            CmdDestroyTile(pos.x, pos.y);
        }
예제 #3
0
        public void DestroyTile(TileObject tileObject)
        {
            var index = GetIndexAt(tileObject.transform.position);

            DestroyTile(index.x, index.y);
        }