public override void Action() { CurrentLocation.NeighbourTile(Direction.DOWN).NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.DOWN).NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.DOWN).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.DestroyGameObject(); }
public void Explode() { CurrentLocation.DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.DOWN).NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.DOWN).NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.UP).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.LEFT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.RIGHT).DestroyGameObject(); CurrentLocation.NeighbourTile(Direction.DOWN).DestroyGameObject(); }