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)); }
public ConstArg( IProcessManager processManager, float flashTime, ICriticalFlash flash, AnimationCurve flashCurve ) : base( processManager, ProcessConstraint.ExpireTime, flashTime ) { thisFlash = flash; thisFlashCurve = flashCurve; }
public void SetCriticalFlash(ICriticalFlash flash) { thisFlash = flash; }
public override void SetUp() { thisFlash = CreateFlash(); thisOriginalFlashImageColor = flashImage.color; }