public override void SetUpReference()
        {
            IDestroyedTargetReserve destroyedTargetReserve = thisDestroyedTargetReserveAdaptor.GetDestroyedTargetReserve();

            thisDestroyedTarget.SetDestroyedTargetReserve(destroyedTargetReserve);

            IPopUIReserve popUIReserve = thisPopUIReserveAdaptor.GetPopUIReserve();

            thisDestroyedTarget.SetPopUIReserve(popUIReserve);
        }
        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();
        }
Beispiel #3
0
 public void SetPopUIReserve(IPopUIReserve popUIReserve)
 {
     thisPopUIReserve = popUIReserve;
 }
 public void SetPopUIReserve(IPopUIReserve reserve)
 {
     thisPopUIReserve = reserve;
 }