Essential, minimalistic and code-first Game Management tools. Perfect for game-jams and medium-sized projects.
class MyGameManager : GameManager
{
protected override void OnBeforeInitializeSystems()
{
AddSystem(new PlayerSystem());
}
}
class Player : MonoBehavior
{
PlayerSystem playerSystem;
void Awake()
{
playerSystem = GameManager.GetSystem<PlayerSystem>();
}
void Start()
{
GameManager.Publish(new PlayerSpawnedMessage());
}
}
- Code-first
- Service Locator
- Message Bus
- JSON Serialization/deserialization utilities
- File reading/writing with JSON support
- Logging utilities
- Automatic initialization
- Odin Inspector support
- UniTask support
This package can be installed via OpenUPM:
openupm add com.chark.game-management
Or via the Unity Package Manager by Installing from a Git URL:
https://github.com/chark/game-management.git#upm
Alternatively, manually install by adding the following entry to Packages/manifest.json
:
{
"com.chark.game-management": "https://github.com/chark/game-management.git#upm"
}
If you'd like to install a specific release, replace upm
suffix with version number, e.g., v0.0.1
. You can find all releases here.