Exemplo n.º 1
0
    private void HandleWallRepairedEvent(WallsEvent.WallRepaired repairedEvent)
    {
        var x = repairedEvent.Coordinate.X;
        var y = repairedEvent.Coordinate.Y;

        Destroy(_tiles[x, y]);
        _tiles[x, y] = Instantiate(wall, new Vector3(x, y, 0), Quaternion.identity, transform);
    }
Exemplo n.º 2
0
 private void HandleWallRepaired(WallsEvent.WallRepaired e)
 {
     _pathFinder.SetTileAsOccupied(e.Coordinate);
 }