Creating a Manager Classes in Unity

In game development in most cases we will need a piece of code in charge of managing general things separated from the mechanics or the main gameplay functionalities, things like UI management, Audio management, state of the game and more.

Photo by Pankaj Patel on Unsplash

There are a lot of ways to solve this but the most common is to create a script called GameManager and start defining different functions and properties to control every general aspect of the game. Also you can have different scripts, one for UI, one for Audio, etc…

Photo by Sigmund on Unsplash

Also there are some predefined solutions for specific cases called Game Programming Patterns. In easy words the Game Programming Patterns are ways to write a code to make it cleaner, easier to understand, faster and designed to solve common problems about game development. If you want to know more about this, here I leave you a link to a book with more information:

https://gameprogrammingpatterns.com/

--

--

--

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Faasos clone

Sending emails with attachments with AWS Lambda and Node.js

Answer industry course game large.

Configuration and Change Management

How Much does an AWS Consultant Charge on Hourly Basis in India

Microsoft and the Open Source community

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

World’s Fastest Cloud VPS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rusben Guzman

Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

More from Medium

High Definition Rendering Pipeline in Unity

Lives and Respawn System in Unity

Creating a Keystore File within Unity

Day 103: Creating A Ledge Grab in Unity Part 1