1

#9 Make an Air Hockey Game in Unity – MENU SCENE (Code)

In this tutorial, you will learn how to create a main menu for a Unity game. That menu will be contained in its own scene.

Having a menu enables us to select if we want to play multiplayer or with AI. Actually, it enables us to do any kind of pre-gameplay setup.

There are a few problems though! How are we going to communicate between scenes? Enough talking and let’s get into it!

 

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

GameValues.cs

 

MenuManager.cs

 

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

  • Mike Air says:

    This is great! With codes and all. This is invaluable!

  • >