#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 ๐Ÿ’ช and guitar ๐ŸŽธ

You may also like

Flutter Firebase & DDD Course [5] โ€“ Sign-In Form Logic

Dio Connectivity Retry Interceptor โ€“ Flutter Tutorial

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