The Code 3

Step 1

A player manager to see if the game has ended or not – checking player health.

Screen Shot 2017-04-04 at 11.34.27.png

Step 2

In the playerManager Script, I want to check if any of the players have died

Screen Shot 2017-04-04 at 11.56.31.png

Step 3

In the player scripts I check if any of the players have died

Screen Shot 2017-04-04 at 11.56.42.png

Step 4

I changed the HamsaManager delgates to broken, so that they don’t look like they do the same thing as the players died, and refelcted this in the attack script

Step 5

The tile manager, this needs to:

<image>

Step 6

Tile Manager:

Assigning the the initial colours of the tiles.

Screen Shot 2017-04-04 at 13.51.08

Step 7

In the Tile script

The tile checks if it should update the colour it is.

Screen Shot 2017-04-04 at 13.51.47

Step 8

We now have a colourful unity project!

Screen Shot 2017-04-04 at 13.53.39.png

Step 9

Can I colour the Hamsa’s as well?

Screen Shot 2017-04-04 at 13.58.35

Step 10

The Hamsa Manager

Screen Shot 2017-04-04 at 13.59.46Screen Shot 2017-04-04 at 13.59.28

Step 11

The Hamsa:
Screen Shot 2017-04-04 at 13.59.11

Screen Shot 2017-04-04 at 13.59.54

Step 11

Colouring the players (using the same script) – in the player Manager.

Screen Shot 2017-04-04 at 15.19.50.png

Step 12

The Player Manager Script

Screen Shot 2017-04-04 at 15.18.30Screen Shot 2017-04-04 at 15.18.42

Step 13

Adding the colour to the players.

Screen Shot 2017-04-04 at 15.18.53Screen Shot 2017-04-04 at 15.19.11

Step 14

Tile Manager Script:

  • Added a little something so that you can choose how many tiles are coloured to start, out of the whole list of tiles.

Screen Shot 2017-04-04 at 15.52.38

Step 15

Test the code

Test A

Screen Shot 2017-04-04 at 15.54.20

Test B

Screen Shot 2017-04-04 at 15.53.37

Test C

Screen Shot 2017-04-04 at 15.57.07.png

Step 16

Add this code to the Hamsa’s

Screen Shot 2017-04-04 at 16.08.49

Test A

Test B

Test C

Screen Shot 2017-04-04 at 16.00.47

Step 17

Turn the NON to invisible

Screen Shot 2017-04-04 at 16.14.31

This is to do with turning the shader to transparent.

Screen Shot 2017-04-04 at 16.14.27

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s