Day 7 – Shooting behavior

ShipShooting

Hi Again,

Now the shooting behavior of the game is in place. It took a while because as I found out the hard way Unity is very case sensitive.

If you name something make sure your spelling and casing is right in the script otherwise it will not behave the way you intended to.

laserBehavior
Laser behavior code

As you can see it requires very little code in order to get things moving in Unity.

This is an advantage for those who are not that experienced coding and the patterns are very self-explanatory.

End day 7

Kommentera

E-postadressen publiceras inte. Obligatoriska fält är märkta *