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

0  comments

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

 

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"}
>