February 2017
Beginner
478 pages
11h 5m
English
In the Prefabs section, we created the Prefab for our sprinkle projectile. In this section, we will see how to make sprinkles move into the 2D space. In particular, we will learn how to create and use scripts in Unity for 2D game elements.
Since there might be different projectiles in our game that can be thrown against the sweet-tooth pandas, and not only sprinkles, we need to define a general class. All the different kinds of projectile will follow some general rules:
Whereas the first is identical for all the projectiles, the second depends on the specific kind of projectile that will be fired. So, we need ...
Read now
Unlock full access