Summary

In this chapter, we have seen how to use Prefabs to quickly replicate and clone game objects. We also learned how to place 2D objects, order them with the Z-Buffering method, as well as how to set up tags and layers in Unity. Then, we created a couple of scripts, and learned along the way how to code complex behaviors with just a few lines. In fact, we explored how Unity handles scripts, their main functions and attributes, and the general execution order.

However, we will improve the scripts written in this chapter later on in the book, to improve the gameplay. In fact, the goal of this chapter was to get used to scripts, and to write down the main logic. Therefore, improving and tweaking is left for later.

In the next chapter, we will dive into the UI world, and integrate it into our game.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.214.6