コード例 #1
0
        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);
        }
 public ICriticalFlashProcess CreateCriticalFlashProcess(
     ICriticalFlash flash,
     AnimationCurve flashCurve,
     float flashTime
     )
 {
     CriticalFlashProcess.IConstArg arg = new CriticalFlashProcess.ConstArg(
         thisProcessManager,
         flashTime,
         flash,
         flashCurve
         );
     return(new CriticalFlashProcess(arg));
 }
コード例 #3
0
            public ConstArg(
                IProcessManager processManager,
                float flashTime,

                ICriticalFlash flash,
                AnimationCurve flashCurve
                ) : base(
                    processManager,
                    ProcessConstraint.ExpireTime,
                    flashTime
                    )
            {
                thisFlash      = flash;
                thisFlashCurve = flashCurve;
            }
コード例 #4
0
 public void SetCriticalFlash(ICriticalFlash flash)
 {
     thisFlash = flash;
 }
コード例 #5
0
 public override void SetUp()
 {
     thisFlash = CreateFlash();
     thisOriginalFlashImageColor = flashImage.color;
 }