void DrawLandedArrows(Rect rect) { if (thisSystemIsReady) { ILandedArrowReserve reserve = landedArrowReserveAdaptor.GetLandedArrowReserve(); ILandedArrow[] arrows = reserve.GetLandedArrows(); string result = ""; foreach (ILandedArrow arrow in arrows) { int index = arrow.GetIndex(); result += index.ToString() + ": "; if (arrow.IsActivated()) { result += DKUtility.DebugHelper.StringInColor(" activated ", Color.green); result += "\n\t" + "detector: " + arrow.GetHitDetector().GetName(); } else { result += "deactivated "; } Vector3 localScale = arrow.GetLocalScale(); result += "locScale: " + localScale.ToString(); result += "\n"; } GUI.Label( rect, result ); } }
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 override void SetUpReference() { ILandedArrowReserve reserve = thisReserveAdaptor.GetLandedArrowReserve(); thisLandedArrow.SetLandedArrowReserve(reserve); IArrowTwang twang = thisTwangAdaptor.GetArrowTwang(); thisLandedArrow.SetArrowTwang(twang); }
public override void SetUp() { thisReserve = CreateLandedArrowReserve(); thisLandedArrowAdaptors = CreateLandedArrowAdaptors(); }
public void SetLandedArrowReserve(ILandedArrowReserve reserve) { thisLandedArrowReserve = reserve; }