Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }