Skip to content

Instantly share code, notes, and snippets.

@yuta-kaseda

yuta-kaseda/Zen3 Secret

Created April 17, 2017 03:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yuta-kaseda/d62a3c1326c70be37f776c116c907dbc to your computer and use it in GitHub Desktop.
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