#8 Make an Air Hockey Game in Unity – LOCAL MULTIPLAYER (Code)

0  comments

In this tutorial, you will learn how to add a local multiplayer to air hockey in Unity. Together with the AI which we programmed earlier, this will provide the players of the game with ultimate freedom – play with friends on one device or play with AI.

Adding a local multiplayer isn’t as simple as just adding another player! It requires a completely new way in which we are handling the input. Let’s do it!

 

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

PlayerController.cs

 

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