public void PushUp() { if (canPush) { //Debug.Log("タップ終了"); mainHeartManager.CanAccel = false; lightning.EaseOut(0.5f); lightning.isPlaying = false; isPushing = false; SetActivateTouchEffect(false); if (canMakeSound) { bgmManager.FadeOut(BGMPath.PULL_SOUND, 0.5f); } } }
private IEnumerator FlyButton() { ControllerEventHandler.PauseEvents(); ScreenFader.FadeOut(Color.black, 0.85f); yield return(new WaitForSeconds(1f)); if (PilotSaveManager.currentScenario.equipConfigurable) { LoadingSceneController.LoadSceneImmediate("VehicleConfiguration"); } else { BGMManager.FadeOut(2f); Loadout loadout = new Loadout(); loadout.normalizedFuel = PilotSaveManager.currentScenario.forcedFuel; loadout.hpLoadout = new string[PilotSaveManager.currentVehicle.hardpointCount]; loadout.cmLoadout = new int[] { 99999, 99999 }; if (PilotSaveManager.currentScenario.forcedEquips != null) { foreach (CampaignScenario.ForcedEquip forcedEquip in PilotSaveManager.currentScenario.forcedEquips) { loadout.hpLoadout[forcedEquip.hardpointIdx] = forcedEquip.weaponName; } } VehicleEquipper.loadout = loadout; if (PilotSaveManager.currentCampaign.isCustomScenarios) { VTScenario.LaunchScenario(VTResources.GetScenario(PilotSaveManager.currentScenario.scenarioID, PilotSaveManager.currentCampaign), false); } else { LoadingSceneController.LoadScene(PilotSaveManager.currentScenario.mapSceneName); } } ControllerEventHandler.UnpauseEvents(); }