Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shooting example part4
using UnityEngine;
using Zenject;
[CreateAssetMenu( fileName = "GameSettingInstaller", menuName = "Installers/GameSettingInstaller" )]
public class GameSettingInstaller : ScriptableObjectInstaller<GameSettingInstaller> {
[SerializeField]
public Hero.Setting heroSetting;
public override void InstallBindings() {
Container.Bind<Hero.Setting>().FromInstance( heroSetting ).AsSingle();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment