Create a gist now

Instantly share code, notes, and snippets.

@yuta-kaseda /Zen3 Secret
Created Apr 17, 2017

What would you like to do?
public class GameManager : MonoBehaviour
{
[Inject]
DiContainer container;
void Update()
{
if(Input.GetKeyDown(KeyCode.A))
{
container.Bind<Hoge>().AsSingle();
var hoge = container.Resolve<Hoge>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment