Defining tasks

As we have already mentioned, tasks have a major role in our application. Hence, we need to define what a task is in the context of our application. When we have done this, we will be able to use them like any other class in our scripts, and this will make our life much easier.

Object-oriented

We are programming in C#, which is an object-oriented language. Even though it is not necessary to know exactly how an object-oriented language works to create games in Unity, it is useful. Therefore, I suggest you take a look at any programming book about C# to learn more about the topic.

Note

You should check out one from Packt's library: C# Programming Cookbook by Dirk Strauss, at https://www.packtpub.com/application-development/c-programming-cookbook ...

Get Gamification with Unity 5.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.