> For the complete documentation index, see [llms.txt](https://steijn.gitbook.io/devlogs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://steijn.gitbook.io/devlogs/devlog-personal/solo/learning-unity.md).

# learning unity 1

We started learning Unity and i wanted to follow some tutorials from learn.unity.com

i managed to get a weapon pickup to work, a shotgun that shoots 100 bullets at once.&#x20;

![](/files/-MUDvFGTLcHN8-LuBk6H)

I've also made a new room work and tweaked some enemy statistical values.&#x20;

![test](/files/-MUDvjjKlsmBXS8LA7fQ)

I also learned about the hierarchy and creating empty objects to sort it.&#x20;

![](/files/-MUEI1QOTI8MhMqBsKP6)

i've also made it so an enemy stops at a distance, i would like to make it so that the enemy moves around the player, for now this seems too advanced.

i also managed to follow the sniper rifle pickup tutorial, which shows how to change items and bring them in as a pickup prefab.<https://learn.unity.com/tutorial/fps-mod-unlock-a-new-sniper-rifle-weapon?projectId=5d9c91a4edbc2a03209169ab#5e6650f3edbc2a09dd6528a7>

![](/files/-MUI0wsNGj2Nxz017H0-)

further managed to replace the projectile of the basic gun&#x20;

<https://i.gyazo.com/31caf6d69aaa08f5547c1ce152195d13.mp4>

Aside from these i've been following a tutorial to make a  tower defense, i've made the grid work, it learned me how to snap to a grid and i've made an enemy follow a set of waypoints.&#x20;

{% embed url="<https://i.gyazo.com/66fa9cc1321ec19f43944715094dcb4d.mp4>" %}

I have also managed to make the enemy spawner work. The tutorial also taught me what determines the adjustability of certain variables. Public variables are shown in the editor and can be changed easily while private ones are hidden from the editor. it does make sense when you think about it.&#x20;

{% embed url="<https://gyazo.com/1fda4b6ca5a0945a1cc2c8236a33f828>" %}
