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

AWS Fargate for Data Engineering

Agile Flow Metrics — Arrivals x Departures

Productive Firefox Plugins

Google Summer of Code: Week 12

BIM is Only the Beginning

Starting Small With Kubernetes and Kubeadm: 500 Containers?

Some tips for beginners, while working on RoR projects.

Don’t ignore the legacy, improve it!

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

Creating Coin Distraction Feature in Unity (Part 1)

Creating a cooldown system in Unity.

2D Mobile: Loot System

Adding Animations to Point and Click Controller