コード例 #1
0
        public void ObjectsFromSceneReceiveLateInits()
        {
            var go        = MakeGameObject();
            var behaviour = go.AddComponent <SimpleBehaviour>();

            _context.Declare <SimpleService>();
            _context.DeclareMonoBehavioursFromScene <SimpleBehaviour>();
            _context.Resolve();

            Assert.AreSame(_context.Get <SimpleService>(), behaviour.SimpleService);
        }