Book Image

Gamification with Unity 5.x

Book Image

Gamification with Unity 5.x

Overview of this book

Are you looking at implementing gamification techniques for your business and wondering where to get a complete rundown of all the tricks and techniques? Well, you have come to the right place! This book will start right from the basics such as gameplay elements and their functionalities before gradually moving onto creating your first gamification project from scratch. You’ll be given the tools and shown how to perform various techniques for creating gamified applications in different contexts. Finally, you will implement various game elements into Unity, publish your own task management application, and get to know the best practices and approaches when designing gamified experiences.
Table of Contents (16 chapters)
Gamification with Unity 5.x
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

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.

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...