Skip to content

Instantly share code, notes, and snippets.

@yuta-kaseda

yuta-kaseda/Zen2 Secret

Created April 17, 2017 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuta-kaseda/2fa7656688e1260ede39626ce53f47f3 to your computer and use it in GitHub Desktop.
Save yuta-kaseda/2fa7656688e1260ede39626ce53f47f3 to your computer and use it in GitHub Desktop.
public class MonoClass : MonoBehaviour
{
[Inject] GameManager manager;
void Start()
{
//managerはすでにnullじゃない
}
}
public class PureClass
{
GameManager manager;
public PureClass(GameManager manager)
{
this.manager = manager;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment