#11 Make an Air Hockey Game in Unity – DIFFICULTY SELECTOR (Code)

Playing air hockey is fun – until you loose again and again! Wouldn’t it be nice if we could have easy, medium and hard difficulty so that everyone will have the ability to choose how quick their opponent will be?

In this tutorial you will learn how to add a difficulty system into your game and also how to create a basic UI with toggles and a toggle group.

This post contains all the code that’s been written in this YouTube video.

IResettable.cs

 

GameValues.cs

 

MenuManager.cs

 

AiScript.cs

 

Matt Rešetár
 

Matt is an app developer with a knack for teaching others. Working as a senior software developer at HandCash, freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪 and guitar 🎸

>