#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

 

About the author 

Matt Rešetár

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

You may also like

Flutter Bloc & Cubit Tutorial

Flutter Custom & Staggered Page Transition Animation Tutorial

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>