lizzard is an open source framework for Unity Engine. It's mainly based on PureMVC pattern and MVVM-style data binding system Unity Weld. It also contains stack-based input system for desktop and custom for mobile.
It's not easy to begin with PureMVC, but it serve well in the future and make your project as flexible as possible.
- In your Unity project change Scripting Runtime Version in Player setting to .NET 4.x Equivalent
- Move lizzard folder to your
/Assets
- Create project initialization MacroCommand to set up all Mediators, Proxies and other components of your game:
public class MyStartupMacroCommand : MacroCommand
{
protected override void InitializeMacroCommand()
{
base.InitializeMacroCommand();
AddSubCommand(() => new MyStartupMediatorsCommand());
AddSubCommand(() => new MyStartupProxiesCommand());
}
}
You can take one of example projects as a base.
- Create Game Launcher script:
public class MyGameLauncher : MonoBehaviour
{
private void Awake()
{
// Set up all custom lizzard components
Facade.GetInstance.RegisterCommand(Notifications.STARTUP, typeof(MyStartupMacroCommand));
// Launch lizzard
Facade.GetInstance.Startup();
}
}
- Documentation
- Editor tools
- Unity API save wrappers