#10 Make an Air Hockey Game in Unity – INTERFACES & CLEANUP (Code)

How can we group different classes (scripts) together based on their common functionality? Well, we can utilize interfaces. This will allow us to nicely reset the position of any game object!

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

MenuManager.cs

 

IResetable.cs

 

PuckScript.cs

 

AiScript.cs

 

PlayerMovement.cs

 

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

>