public override void SetUpReference()
        {
            IPlayerInputManager inputManager = inputManagerAdaptor.GetInputManager();

            thisShootingManager.SetInputManager(inputManager);

            ILaunchPoint launchPoint = launchPointAdaptor.GetLaunchPoint();

            thisShootingManager.SetLaunchPoint(launchPoint);

            ITrajectory trajectory = trajectoryAdaptor.GetTrajectory();

            thisShootingManager.SetTrajectory(trajectory);

            ILandedArrowReserve landedArrowReserve = landedArrowReserveAdaptor.GetLandedArrowReserve();

            thisShootingManager.SetLandedArrowReserve(landedArrowReserve);

            IArrowReserve arrowReserve = arrowReserveAdaptor.GetArrowReserve();

            thisShootingManager.SetArrowReserve(arrowReserve);

            // IArrowTrailReserve arrowTrailReserve = arrowTrailReserveAdaptor.GetArrowTrailReserve();
            // thisShootingManager.SetArrowTrailReserve(arrowTrailReserve);

            ICriticalFlash flash = criticalFlashAdaptor.GetCriticalFlash();

            thisShootingManager.SetCriticalFlash(flash);

            IShootingDataManager shootingDataManager = shootingDataManagerAdaptor.GetShootingDataManager();

            thisShootingManager.SetShootingDataManager(shootingDataManager);
        }
示例#2
0
        private static void ConfigureDI()
        {
            ServiceCollection vServiceCollection = new ServiceCollection();

            ConfigureDIServices(vServiceCollection);
            ServiceProvider vServiceProvider =
                vServiceCollection.BuildServiceProvider();

            _Launch = vServiceProvider.GetService <ILaunchPoint>();
        }
示例#3
0
        public override void SetUpReference()
        {
            IArrowReserve reserve = thisArrowReserveAdaptor.GetArrowReserve();

            thisArrow.SetArrowReserve(reserve);

            ILaunchPoint launchPoint = thisLaunchPointAdaptor.GetLaunchPoint();

            thisArrow.SetLaunchPoint(launchPoint);

            IShootingManager shootingManager = thisShootingManagerAdaptor.GetShootingManager();

            thisArrow.SetShootingManager(shootingManager);
            thisShootingManager = shootingManager;

            IArrowTrailReserve arrowTrailReserve = thisArrowTrailReserveAdaptor.GetArrowTrailReserve();

            thisArrow.SetArrowTrailReserve(arrowTrailReserve);

            thisAudioManager = thisAudioManagerAdaptor.GetAudioManager();
        }
 public void SetLaunchPoint(ILaunchPoint launchPoint)
 {
     thisLaunchPoint = launchPoint;
 }
示例#5
0
 public override void SetUp()
 {
     thisLaunchPoint = CreateLaunchPoint();
 }