private void Construct(
     ICameraSystem cameraSystem,
     IRaycastSystem raycastSystem)
 {
     this.cameraSystem  = cameraSystem;
     this.raycastSystem = raycastSystem;
 }
Exemple #2
0
 private void Construct(
     ICameraSystem cameraSystem,
     IInputSystem inputSystem)
 {
     this.inputSystem  = inputSystem;
     this.cameraSystem = cameraSystem;
 }
Exemple #3
0
 private void Construct(
     IARObjectAlignment aRObjectAlignment,
     ARObjectPool aRObjectPool,
     ICameraSystem cameraSystem,
     IRaycastSystem raycastSystem)
 {
     this.aRObjectAlignment = aRObjectAlignment;
     this.aRObjectPool      = aRObjectPool;
     this.cameraSystem      = cameraSystem;
     this.raycastSystem     = raycastSystem;
 }
Exemple #4
0
        public void SetUp()
        {
            container = new DiContainer();
            container.Bind <ARObjectTransformer>().AsSingle();

            cameraSystem = Substitute.For <ICameraSystem>();
            container.Bind <ICameraSystem>().FromInstance(cameraSystem);

            inputSystem = Substitute.For <IInputSystem>();
            container.Bind <IInputSystem>().FromInstance(inputSystem);

            container.Inject(this);
        }
        public void SetUp()
        {
            container = new DiContainer();
            container.Bind <ARObjectAlignment>().AsSingle();

            raycastSystem = Substitute.For <IRaycastSystem>();
            container.Bind <IRaycastSystem>().FromInstance(raycastSystem);

            cameraSystem = Substitute.For <ICameraSystem>();
            container.Bind <ICameraSystem>().FromInstance(cameraSystem);

            aRObject = Substitute.For <IARObject>();

            container.Inject(this);
        }
Exemple #6
0
        public void SetUp()
        {
            container = new DiContainer();

            raycastSystem = Substitute.For <IRaycastSystem>();
            container.Bind <IRaycastSystem>().FromInstance(raycastSystem).AsSingle();

            aRObject = Substitute.For <IARObject>();
            container.BindMemoryPool <IARObject, ARObjectPool>().FromInstance(aRObject);

            aRObjectAlignment = Substitute.For <IARObjectAlignment>();
            container.Bind <IARObjectAlignment>().FromInstance(aRObjectAlignment);

            cameraSystem = Substitute.For <ICameraSystem>();
            container.Bind <ICameraSystem>().FromInstance(cameraSystem);

            container.Bind(typeof(ARObjectSpawner)).To <ARObjectSpawner>().AsSingle();
            container.Inject(this);
        }