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.
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.
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.
In the next section, we are going to define an object. It has different properties and functions that can be called on it.
An example of an object that we are going to use is
DateTime. It is a class that stores information about a specific...