public ConstArg(
     IProcessManager processManager,
     IShootingManager shootingManager,
     int processOrder
     ) : base(
         processManager
         )
 {
     thisShootingManager = shootingManager;
     thisProcessOrder    = processOrder;
 }
 public IShootingProcess CreateShootingProcess(
     IShootingManager shootingManager,
     float fireRate
     )
 {
     ShootingProcess.IConstArg arg = new ShootingProcess.ConstArg(
         shootingManager,
         fireRate,
         thisProcessManager
         );
     return(new ShootingProcess(arg));
 }
 public IDrawProcess CreateDrawProcess(
     IShootingManager shootingManager,
     int processOrder
     )
 {
     DrawProcess.IConstArg arg = new DrawProcess.ConstArg(
         thisProcessManager,
         shootingManager,
         processOrder
         );
     return(new DrawProcess(arg));
 }
 void DrawFlightSpeed()
 {
     if (thisSystemIsReady)
     {
         IShootingManager manager     = shootingManagerAdaptor.GetShootingManager();
         float            flightSpeed = manager.GetFlightSpeed();
         GUI.Label(
             sTR_2,
             "flightSpeed: " + flightSpeed.ToString()
             );
     }
 }
 void DrawBowData(Rect rect)
 {
     if (thisSystemIsReady)
     {
         IShootingManager shootingManager = shootingManagerAdaptor.GetShootingManager();
         string           result          = shootingManager.GetDebugString();
         GUI.Label(
             rect,
             result
             );
     }
 }
Esempio n. 6
0
            public ConstArg(
                IShootingManager shootingManager,
                float fireRate,

                IProcessManager processManager
                ) : base(
                    processManager,
                    ProcessConstraint.None,
                    0f
                    )
            {
                thisShootingManager = shootingManager;
                thisFireRate        = fireRate;
            }
        public override void SetUpReference()
        {
            IPlayerCamera playerCamera = playerCameraAdaptor.GetPlayerCamera();

            thisInputManager.SetPlayerCamera(playerCamera);
            ICoreGameplayInputScroller scroller = inputScrollerAdaptor.GetInputScroller();

            thisInputManager.SetInputScroller(scroller);
            IShootingManager shootingManager = shootingManagerAdaptor.GetShootingManager();

            thisInputManager.SetShootingManager(shootingManager);

            ISmoothFollower follower = cameraPivotSmoothFollowerAdaptor.GetSmoothFollower();

            thisInputManager.SetCameraPivotSmoothFollower(follower);
        }
 void DrawShootingMetrics(Rect rect)
 {
     if (thisSystemIsReady)
     {
         IShootingManager shootingManager = shootingManagerAdaptor.GetShootingManager();
         float            drawTime        = shootingManager.GetDrawElapsedTime();
         float            drawStrength    = shootingManager.GetDrawStrength();
         float            arrowAttack     = shootingManager.GetArrowAttack();
         float            flightSpeed     = shootingManager.GetFlightSpeed();
         GUI.Label(
             rect,
             "drawTime: " + drawTime.ToString() + "\n" +
             "drawStrength: " + drawStrength.ToString() + "\n" +
             "arrowAttack: " + arrowAttack.ToString() + "\n" +
             "flightSpeed: " + flightSpeed.ToString() + "\n"
             );
     }
 }
        public override void SetUpReference()
        {
            if (destroyedTargetReserveAdaptor != null)
            {
                thisDestroyedTargetReserveAdaptor = destroyedTargetReserveAdaptor;
            }
            if (popUIReserveAdaptor != null)
            {
                thisPopUIReserveAdaptor = popUIReserveAdaptor;
            }

            IDestroyedTargetReserve destroyedTargetReserve = thisDestroyedTargetReserveAdaptor.GetDestroyedTargetReserve();

            thisShootingTarget.SetDestroyedTargetReserve(destroyedTargetReserve);

            IPopUIReserve popUIReserve = thisPopUIReserveAdaptor.GetPopUIReserve();

            thisShootingTarget.SetPopUIReserve(popUIReserve);

            IGameStatsTracker tracker = thisGameStatsTrackerAdaptor.GetTracker();

            thisShootingTarget.SetGameStatsTracker(tracker);

            IShootingManager shootingManager = thisShootingManagerAdaptor.GetShootingManager();

            thisShootingTarget.SetShootingManager(shootingManager);

            IShootingTargetNormalHitDetector normalHitDetector = thisNormalHitDetectorAdaptor.GetShootingTargetNormalHitDetector();

            thisShootingTarget.SetShootingTargetNormalHitDetector(normalHitDetector);
            normalHitDetector.SetShootingTarget(thisShootingTarget);

            if (thisCriticalHitDetectorAdaptor != null)
            {
                IShootingTargetCriticalHitDetector criticalHitDetector = thisCriticalHitDetectorAdaptor.GetShootingTargetCriticalHitDetector();
                thisShootingTarget.SetShootingTargetCriticalHitDetector(criticalHitDetector);
                criticalHitDetector.SetShootingTarget(thisShootingTarget);
            }

            thisAudioManager = thisAudioManagerAdaptor.GetAudioManager();
        }
Esempio n. 10
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();
        }
Esempio n. 11
0
 public void SetShootingManager(IShootingManager shootingManager)
 {
     thisShootingManager = shootingManager;
 }
Esempio n. 12
0
        public void CallShootingManagerMarkAimDone()
        {
            IShootingManager manager = shootingManagerAdaptor.GetShootingManager();

            manager.MarkAimDone();
        }