private void Construct( ICameraSystem cameraSystem, IRaycastSystem raycastSystem) { this.cameraSystem = cameraSystem; this.raycastSystem = raycastSystem; }
private void Construct( ICameraSystem cameraSystem, IInputSystem inputSystem) { this.inputSystem = inputSystem; this.cameraSystem = cameraSystem; }
private void Construct( IARObjectAlignment aRObjectAlignment, ARObjectPool aRObjectPool, ICameraSystem cameraSystem, IRaycastSystem raycastSystem) { this.aRObjectAlignment = aRObjectAlignment; this.aRObjectPool = aRObjectPool; this.cameraSystem = cameraSystem; this.raycastSystem = raycastSystem; }
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); }
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); }