// Use this for initialization void Start() { var container = new QFrameworkContainer(); container.RegisterInstance(new A()); container.Inject(this); container.Resolve <A>().HelloWorld(); }