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

1  comments

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

 

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