Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Zenject;
- using UnityEngine;
- using System.Collections;
- public class TestInstaller : MonoInstaller
- {
- public override void InstallBindings()
- {
- Container.Bind<string>().FromInstance("Hello World!");
- Container.Bind<Greeter>().AsSingle().NonLazy();
- }
- }
- public class Greeter
- {
- public Greeter(string message)
- {
- Debug.Log(message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement