Devlog #5 - Gamification and Objective System
With everything going well, and a little under a month left until our prototype is due, I needed to gamify the project. I started by upgrading my project to Unity 6.2 to test Unity AI’s capabilities. Unity AI is an AI model built into unity that understands the unity engine and namespaces. More on this later.
To start, I wanted to create a minigame for hacking computers. Instead of holding down an interaction, there's a quick and easy skill check. Currently hacking a computer only uses this mechanic. In addition, using unity AI I generated 4 different keyboard sounds that will play each time you attempt the skill check.
The bulk of the week was working on the Objective System. Like the map generator from a couple of weeks ago, I want this to be expandable and work on every heist. I started by creating an abstract class called Task. Task only holds the task name, a bool to check if it is completed and a function to update the task.
The objective class holds its name and a list of tasks. There is a check to see if the objective is complete by iterating through the tasks and checking they are all completed. UpdateObjective iterates through tasks and updates them.
Using the Task class, I created some base tasks I will use, such as waiting for a timer, completing a minigame (this is currently computers but is easily expanded into other things), and reaching a certain location.