RIngleton – a resource Singleton!

NOTE: You should probably use ScriptableObjects instead.

The ringleton is a design pattern I’ve been (ab)using quite a lot recently. It’s a really handy way of serializing / deserializing data that is used across your game.

Basically, what I needed was a quick and simple way of storing some data which is then used on multiple locations in my game. In bigger games you would probably use some form of custom json serializatian but that seemed a bit much for my needs.

This is what I came up with.
Continue reading “RIngleton – a resource Singleton!”