Appeal_Mgr.cs 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class Appeal_Mgr : PartsMgrBase
  6. {
  7. public int AppealComboCount
  8. {
  9. get
  10. {
  11. return this.m_AppealComboCount;
  12. }
  13. }
  14. private float m_CutInTotal
  15. {
  16. get
  17. {
  18. return this.m_CutInTime + this.m_FadeStartTime + this.m_FadeOutTime;
  19. }
  20. }
  21. public static Appeal_Mgr Instance
  22. {
  23. get
  24. {
  25. return Appeal_Mgr.m_Instance;
  26. }
  27. }
  28. protected override void Start()
  29. {
  30. Appeal_Mgr.m_Instance = this;
  31. base.Start();
  32. this.m_ScreenEffect.SetActive(false);
  33. this.m_AppealCutInPanel.SetActive(false);
  34. this.m_RevarsalCutInPanel.SetActive(false);
  35. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS_Skip)
  36. {
  37. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Player);
  38. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Enemy);
  39. if (RhythmAction_Mgr.NowState == RhythmAction_Mgr.DanceState.Dance_First)
  40. {
  41. this.m_VsSkip1st = true;
  42. ShootCutInTex.SetEnemyCutInTex(true);
  43. }
  44. }
  45. if (!base.IsActive)
  46. {
  47. base.gameObject.SetActive(false);
  48. return;
  49. }
  50. this.m_EffectBase.enabled = (GameMain.Instance.VRMode && DanceSetting.Settings.CutInGrade != Appeal_Mgr.CutInGrade.None);
  51. RhythmAction_Mgr.Instance.Search_AllEffect(this.m_ScreenEffect.transform, false);
  52. this.m_CharaAppealList.Add(DanceBattle_Mgr.CharaType.Player, new CharaAppealData());
  53. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS || RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  54. {
  55. this.m_CharaAppealList.Add(DanceBattle_Mgr.CharaType.Enemy, new CharaAppealData());
  56. }
  57. }
  58. private void OnDestroy()
  59. {
  60. if (this.m_VsSkip1st)
  61. {
  62. this.m_NotTexClear = (RhythmAction_Mgr.Instance.IsTakeEnd || RhythmAction_Mgr.Instance.IsDanceSkip);
  63. }
  64. if (!this.m_NotTexClear)
  65. {
  66. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Player);
  67. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Enemy);
  68. }
  69. }
  70. private void AppealDataInit(DanceBattle_Mgr.CharaType chara_type)
  71. {
  72. if (!this.m_CharaAppealList.ContainsKey(chara_type))
  73. {
  74. this.m_CharaAppealList.Add(chara_type, new CharaAppealData());
  75. }
  76. CharaAppealData appeal_data = this.m_CharaAppealList[chara_type];
  77. foreach (Appeal_Mgr.AppealEfectData appealEfectData in this.m_EffectList)
  78. {
  79. if (appealEfectData.Charatype == chara_type)
  80. {
  81. appeal_data.CutInType = appealEfectData.CutInType;
  82. appeal_data.AppealGaugeEffect = appealEfectData.GaugeEffect;
  83. appeal_data.ReversalCutIn = appealEfectData.ReversalCutInTex;
  84. appeal_data.GaugeGroup = appealEfectData.GaugeGroup;
  85. appeal_data.AppealFlashGauge = appealEfectData.AppealFlashGauge;
  86. appeal_data.CoolTimeGauge = appealEfectData.CoolTimeGauge;
  87. appeal_data.AppelCoolFlash = appealEfectData.AppelCoolFlash;
  88. appeal_data.AudioSE = appealEfectData.CutinAudio;
  89. appeal_data.ReversalObj = appealEfectData.ReversalObj;
  90. appeal_data.TimerGauge = appealEfectData.TimerGauge;
  91. appeal_data.SweatEffect = appealEfectData.SweatEffect;
  92. appeal_data.AuraEffect = appealEfectData.AuraEffect;
  93. }
  94. }
  95. appeal_data.AudioSE.clip = Resources.Load<AudioClip>("SceneDance/Rhythm_Action/Sound/" + this.m_CutInSE);
  96. appeal_data.AudioSE.volume = this.m_CutinSeVol;
  97. RhythmAction_Mgr.Instance.AddAudioMgr(appeal_data.AudioSE);
  98. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS || RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  99. {
  100. appeal_data.ReversalCutIn.sprite2D = ShootCutInTex.GetCutInTex(chara_type, ShootCutInTex.CutInName.逆転);
  101. }
  102. GameObject original;
  103. GameObject original2;
  104. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  105. {
  106. original = Resources.Load<GameObject>("SceneDance/Rhythm_Action/Prefab/AppealCutIn/" + DanceMain.SelectDanceData.AppealCutinName);
  107. original2 = Resources.Load<GameObject>("SceneDance/Rhythm_Action/Prefab/ReversalCutIn/" + DanceMain.SelectDanceData.ReversalCutinName);
  108. }
  109. else
  110. {
  111. original = DanceBattle_Mgr.EnemyData.AppealCutInEffect;
  112. original2 = DanceBattle_Mgr.EnemyData.ReversalCutInEffect;
  113. }
  114. appeal_data.AppealCutInEffect = UnityEngine.Object.Instantiate<GameObject>(original);
  115. appeal_data.ReversalCutInEffect = UnityEngine.Object.Instantiate<GameObject>(original2);
  116. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  117. {
  118. appeal_data.AppealCutInpanel = this.m_BackPanel;
  119. appeal_data.AppealCutIn = this.m_BackCutInSprite;
  120. }
  121. else
  122. {
  123. appeal_data.AppealCutInpanel = this.m_FrontPanel;
  124. appeal_data.AppealCutIn = this.m_FrontCutInSprite;
  125. }
  126. this.Setting_AllParticle(appeal_data.AppealCutInEffect.transform, appeal_data);
  127. appeal_data.AppealCutInpanel.SetActive(false);
  128. IEnumerator enumerator2 = appeal_data.ReversalCutInEffect.transform.GetEnumerator();
  129. try
  130. {
  131. while (enumerator2.MoveNext())
  132. {
  133. object obj = enumerator2.Current;
  134. Transform transform = (Transform)obj;
  135. RhythmAction_Mgr.Instance.AddParticleSystem(transform.GetComponent<ParticleSystem>());
  136. UI_ParticleImageFit component = transform.GetComponent<UI_ParticleImageFit>();
  137. if (component)
  138. {
  139. component.FitImage = appeal_data.ReversalCutIn;
  140. }
  141. }
  142. }
  143. finally
  144. {
  145. IDisposable disposable;
  146. if ((disposable = (enumerator2 as IDisposable)) != null)
  147. {
  148. disposable.Dispose();
  149. }
  150. }
  151. appeal_data.ReversalCutInEffect.transform.SetParent(appeal_data.ReversalCutIn.transform, false);
  152. appeal_data.ReversalObj.SetActive(false);
  153. for (int i = 0; i < appeal_data.GaugeGroup.childCount; i++)
  154. {
  155. UISprite component2 = appeal_data.GaugeGroup.GetChild(i).GetComponent<UISprite>();
  156. if (component2)
  157. {
  158. this.m_GaugeHeight = (float)component2.height;
  159. if ((i + 1) * 200 <= appeal_data.AppealMax)
  160. {
  161. appeal_data.AllGaugeList.Add(component2);
  162. component2.fillAmount = 0f;
  163. }
  164. else
  165. {
  166. component2.color = this.m_NotChargeColor;
  167. component2.fillAmount = (float)(appeal_data.AppealMax % ((i + 1) * 200)) / 200f;
  168. }
  169. }
  170. }
  171. RhythmAction_Mgr.Instance.AddParticleSystem(appeal_data.AppealGaugeEffect.GetComponent<ParticleSystem>());
  172. appeal_data.AppealGaugeEffect.SetActive(false);
  173. appeal_data.TimerGauge.gameObject.SetActive(false);
  174. RhythmAction_Mgr.Instance.AddParticleSystem(appeal_data.AuraEffect.GetComponent<ParticleSystem>());
  175. RhythmAction_Mgr.Instance.AddParticleSystem(appeal_data.SweatEffect.GetComponent<ParticleSystem>());
  176. appeal_data.AuraEffect.SetActive(false);
  177. appeal_data.SweatEffect.SetActive(false);
  178. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  179. {
  180. string str = "csv_rhythm_action/cutin_voice";
  181. this.SetCutInVoice(str + ".nei");
  182. if (string.IsNullOrEmpty(this.GetPlayerData().strJobVoice))
  183. {
  184. for (int j = 0; j < GameUty.PathList.Count; j++)
  185. {
  186. this.SetCutInVoice(str + "_" + GameUty.PathList[j] + ".nei");
  187. if (!string.IsNullOrEmpty(this.GetPlayerData().strJobVoice))
  188. {
  189. break;
  190. }
  191. }
  192. }
  193. }
  194. else
  195. {
  196. appeal_data.strPersonalVoice1 = DanceBattle_Mgr.EnemyData.PersonalVoice1;
  197. appeal_data.strPersonalVoice2 = DanceBattle_Mgr.EnemyData.PersonalVoice2;
  198. appeal_data.strJobVoice = DanceBattle_Mgr.EnemyData.JobVoice;
  199. appeal_data.strReversalVoice = DanceBattle_Mgr.EnemyData.ReversalVoice;
  200. }
  201. Func<string, AudioSourceMgr> func = delegate(string name)
  202. {
  203. GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>(GameObject.Find("AudioSe(Clone)"));
  204. AudioSourceMgr component3 = gameObject.GetComponent<AudioSourceMgr>();
  205. component3.name = name;
  206. component3.Init(AudioSourceMgr.Type.Se, false, GameMain.Instance.SoundMgr, appeal_data.AudioSE.transform.parent);
  207. component3.audiosource.spatialBlend = 0f;
  208. RhythmAction_Mgr.Instance.AddAudioMgr(component3.audiosource);
  209. return component3;
  210. };
  211. appeal_data.AudioVoice = func("CutinVoice");
  212. appeal_data.ReversalVoice = func("ReversalVoice");
  213. }
  214. private void SetCutInVoice(string csv_name)
  215. {
  216. if (!GameUty.FileSystem.IsExistentFile(csv_name))
  217. {
  218. return;
  219. }
  220. using (AFileBase afileBase = GameUty.FileSystem.FileOpen(csv_name))
  221. {
  222. using (CsvParser csvParser = new CsvParser())
  223. {
  224. bool condition = csvParser.Open(afileBase);
  225. NDebug.Assert(condition, csv_name + "\nopen failed.");
  226. for (int i = 0; i < csvParser.max_cell_y; i++)
  227. {
  228. if (!(RhythmAction_Mgr.Instance.UserMaid.status.personal.uniqueName != csvParser.GetCellAsString(0, i)))
  229. {
  230. for (int j = 0; j < csvParser.max_cell_x; j++)
  231. {
  232. switch (j)
  233. {
  234. case 1:
  235. this.GetPlayerData().strPersonalVoice1 = csvParser.GetCellAsString(j, i);
  236. break;
  237. case 2:
  238. this.GetPlayerData().strPersonalVoice2 = csvParser.GetCellAsString(j, i);
  239. break;
  240. case 3:
  241. this.GetPlayerData().strJobVoice = csvParser.GetCellAsString(j, i);
  242. break;
  243. case 4:
  244. this.GetPlayerData().strReversalVoice = csvParser.GetCellAsString(j, i);
  245. break;
  246. }
  247. }
  248. break;
  249. }
  250. }
  251. }
  252. }
  253. }
  254. private void Setting_AllParticle(Transform parent, CharaAppealData appeal_data)
  255. {
  256. IEnumerator enumerator = parent.GetEnumerator();
  257. try
  258. {
  259. while (enumerator.MoveNext())
  260. {
  261. object obj = enumerator.Current;
  262. Transform transform = (Transform)obj;
  263. bool flag = DanceSetting.Settings.CutInGrade == Appeal_Mgr.CutInGrade.High;
  264. ParticleSystem component = transform.GetComponent<ParticleSystem>();
  265. UI_ImageFitPos component2 = transform.GetComponent<UI_ImageFitPos>();
  266. UI_ParticleImageFit component3 = transform.GetComponent<UI_ParticleImageFit>();
  267. ParticleSystemRenderer component4 = transform.GetComponent<ParticleSystemRenderer>();
  268. transform.gameObject.SetActive(flag);
  269. if (component2)
  270. {
  271. component2.FitImage = this.m_EffectBase;
  272. }
  273. if (component3)
  274. {
  275. component3.FitImage = this.m_EffectBase;
  276. }
  277. if (flag)
  278. {
  279. if (component)
  280. {
  281. appeal_data.AllCutInEffect.Add(component);
  282. RhythmAction_Mgr.Instance.AddParticleSystem(component);
  283. }
  284. if (component4)
  285. {
  286. appeal_data.EffectRender.Add(component4);
  287. appeal_data.m_EffectRenderOrder.Add(component4.sortingOrder);
  288. }
  289. }
  290. this.Setting_AllParticle(transform, appeal_data);
  291. }
  292. }
  293. finally
  294. {
  295. IDisposable disposable;
  296. if ((disposable = (enumerator as IDisposable)) != null)
  297. {
  298. disposable.Dispose();
  299. }
  300. }
  301. }
  302. private IEnumerator CutInOperate()
  303. {
  304. int appeal_count = 1;
  305. for (;;)
  306. {
  307. this.m_AppealcountLabel.text = string.Format("{0:00}", this.GetPlayerData().AppealValue / 200);
  308. if (!RhythmAction_Mgr.Instance.IsPause && !GameMain.Instance.MainCamera.IsFadeOut() && !RhythmAction_Mgr.Instance.IsReadyNow && this.m_GaugeChargeEnd)
  309. {
  310. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  311. {
  312. if (RhythmAction_Mgr.Instance.DanceTimer >= RhythmAction_Mgr.Instance.TakeTime / 7f * (float)appeal_count && appeal_count <= 6)
  313. {
  314. appeal_count++;
  315. if (appeal_count % 2 == 0)
  316. {
  317. this.AppealCutIn(DanceBattle_Mgr.CharaType.Player);
  318. Voltage_Mgr.Instance.AddVoltage();
  319. }
  320. else
  321. {
  322. this.AppealCutIn(DanceBattle_Mgr.CharaType.Enemy);
  323. }
  324. }
  325. }
  326. else
  327. {
  328. bool flag = Input.GetKeyDown(KeyCode.Space);
  329. if (GameMain.Instance.VRMode && !GameMain.Instance.OvrMgr.OvrCamera.IsNoHandController)
  330. {
  331. AVRControllerButtons controller_buttons = GameMain.Instance.OvrMgr.ovr_obj.left_controller.controller_buttons;
  332. AVRControllerButtons controller_buttons2 = GameMain.Instance.OvrMgr.ovr_obj.right_controller.controller_buttons;
  333. AVRController controller = GameMain.Instance.OvrMgr.ovr_obj.left_controller.controller;
  334. AVRController controller2 = GameMain.Instance.OvrMgr.ovr_obj.right_controller.controller;
  335. flag |= ((controller_buttons.GetPressDown(AVRControllerButtons.BTN.TRIGGER) && controller.HandDanceMode) || (controller_buttons2.GetPressDown(AVRControllerButtons.BTN.TRIGGER) && controller2.HandDanceMode));
  336. }
  337. else
  338. {
  339. flag |= NInput.GetMouseButtonDown(1);
  340. }
  341. if (flag && this.GetAppealData(DanceBattle_Mgr.CharaType.Player).IsCanApplel)
  342. {
  343. this.AppealCutIn(DanceBattle_Mgr.CharaType.Player);
  344. Voltage_Mgr.Instance.AddVoltage();
  345. }
  346. }
  347. }
  348. yield return null;
  349. }
  350. yield break;
  351. }
  352. private void SetCutInSprite(DanceBattle_Mgr.CharaType chara_type)
  353. {
  354. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  355. {
  356. this.SetCutInChallenge(chara_type);
  357. }
  358. else
  359. {
  360. this.SetCutInVS(chara_type);
  361. }
  362. }
  363. private void SetCutInChallenge(DanceBattle_Mgr.CharaType chara_type)
  364. {
  365. CharaAppealData charaAppealData = this.m_CharaAppealList[chara_type];
  366. charaAppealData.AppealCutIn.sprite2D = ShootCutInTex.GetCutInTex(chara_type, this.m_NowCutIn);
  367. ShootCutInTex.CutInName nowCutIn = ShootCutInTex.CutInName.ジョブ固有;
  368. switch (this.m_NowCutIn)
  369. {
  370. case ShootCutInTex.CutInName.性格固有1:
  371. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strPersonalVoice1, 0f, false, false);
  372. nowCutIn = ShootCutInTex.CutInName.性格固有2;
  373. break;
  374. case ShootCutInTex.CutInName.性格固有2:
  375. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strPersonalVoice2, 0f, false, false);
  376. nowCutIn = ShootCutInTex.CutInName.ジョブ固有;
  377. break;
  378. case ShootCutInTex.CutInName.ジョブ固有:
  379. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strJobVoice, 0f, false, false);
  380. nowCutIn = ShootCutInTex.CutInName.性格固有1;
  381. break;
  382. }
  383. this.m_NowCutIn = nowCutIn;
  384. }
  385. private void SetCutInVS(DanceBattle_Mgr.CharaType chara_type)
  386. {
  387. CharaAppealData charaAppealData = this.m_CharaAppealList[chara_type];
  388. DanceBattle_Mgr.CharaType opponentType = DanceBattle_Mgr.GetOpponentType(chara_type);
  389. float num = Mathf.Abs(DanceBattle_Mgr.Instance.GetScoreRate(chara_type, true) - DanceBattle_Mgr.Instance.GetScoreRate(opponentType, true));
  390. Sprite cutInTex;
  391. if (num <= 20f)
  392. {
  393. cutInTex = ShootCutInTex.GetCutInTex(chara_type, ShootCutInTex.CutInName.ジョブ固有);
  394. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strJobVoice, 0f, false, false);
  395. }
  396. else if (Score_Mgr.Instance.GetScore(chara_type) < Score_Mgr.Instance.GetScore(opponentType))
  397. {
  398. cutInTex = ShootCutInTex.GetCutInTex(chara_type, ShootCutInTex.CutInName.性格固有1);
  399. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strPersonalVoice1, 0f, false, false);
  400. }
  401. else
  402. {
  403. cutInTex = ShootCutInTex.GetCutInTex(chara_type, ShootCutInTex.CutInName.性格固有2);
  404. charaAppealData.AudioVoice.LoadPlay(charaAppealData.strPersonalVoice2, 0f, false, false);
  405. }
  406. charaAppealData.AppealCutIn.sprite2D = cutInTex;
  407. }
  408. private IEnumerator CutIn(DanceBattle_Mgr.CharaType chara_type)
  409. {
  410. float timer = 0f;
  411. CharaAppealData appeal_data = this.m_CharaAppealList[chara_type];
  412. DanceBattle_Mgr.CharaType oppnent_type = DanceBattle_Mgr.GetOpponentType(chara_type);
  413. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  414. {
  415. this.m_ScreenEffect.SetActive(DanceSetting.Settings.CutInGrade == Appeal_Mgr.CutInGrade.High);
  416. }
  417. appeal_data.TimerGauge.fillAmount = 1f;
  418. appeal_data.TimerGauge.gameObject.SetActive(true);
  419. appeal_data.AudioSE.Play();
  420. bool exist_cutin = this.m_AppealCutInPanel.activeSelf;
  421. if (!this.m_AppealCutInPanel.activeSelf)
  422. {
  423. this.m_AppealCutInPanel.SetActive(true);
  424. }
  425. if (this.m_CharaAppealList.ContainsKey(DanceBattle_Mgr.CharaType.Enemy))
  426. {
  427. if (this.GetAppealData(oppnent_type).IsCutInNow)
  428. {
  429. appeal_data.AppealCutIn = this.m_FrontCutInSprite;
  430. appeal_data.AppealCutInpanel = this.m_FrontPanel;
  431. appeal_data.CutInEffectOrder = 1;
  432. }
  433. else
  434. {
  435. appeal_data.AppealCutIn = this.m_BackCutInSprite;
  436. appeal_data.AppealCutInpanel = this.m_BackPanel;
  437. appeal_data.CutInEffectOrder = 0;
  438. }
  439. }
  440. appeal_data.AppealCutIn.color = Color.white;
  441. this.SetCutInSprite(chara_type);
  442. Vector3 cutin_local = Vector3.zero;
  443. Appeal_Mgr.CutInMove cutInType = appeal_data.CutInType;
  444. if (cutInType != Appeal_Mgr.CutInMove.CutIn_Left)
  445. {
  446. if (cutInType == Appeal_Mgr.CutInMove.CutIn_Right)
  447. {
  448. if (GameMain.Instance.VRMode)
  449. {
  450. cutin_local.x = (float)Note_Mgr.Instance.UIRootWidth;
  451. }
  452. else
  453. {
  454. cutin_local.x = (float)Screen.width * 1.5f;
  455. cutin_local = UI_ScreenFitBase.PointToScreenPos(cutin_local);
  456. }
  457. appeal_data.AppealCutInEffect.transform.localEulerAngles = Vector3.zero;
  458. }
  459. }
  460. else
  461. {
  462. if (GameMain.Instance.VRMode)
  463. {
  464. cutin_local.x = (float)(-(float)Note_Mgr.Instance.UIRootWidth);
  465. }
  466. else
  467. {
  468. cutin_local.x = (float)Screen.width * -0.5f;
  469. cutin_local = UI_ScreenFitBase.PointToScreenPos(cutin_local);
  470. }
  471. appeal_data.AppealCutInEffect.transform.localEulerAngles = Vector3.up * 180f;
  472. }
  473. cutin_local.y = 0f;
  474. appeal_data.AppealCutInEffect.SetActive(true);
  475. appeal_data.AppealCutInpanel.gameObject.SetActive(DanceSetting.Settings.CutInGrade != Appeal_Mgr.CutInGrade.None);
  476. appeal_data.AppealCutInpanel.transform.localPosition = cutin_local;
  477. Vector3 first_pos = appeal_data.AppealCutInpanel.transform.localPosition;
  478. foreach (ParticleSystem particleSystem in appeal_data.AllCutInEffect)
  479. {
  480. particleSystem.Play();
  481. }
  482. appeal_data.AppealGauge = appeal_data.AppealValue;
  483. float first_gauge = (float)appeal_data.AppealGauge;
  484. appeal_data.AppealValue -= 200;
  485. if (appeal_data.AppealValue < 0)
  486. {
  487. appeal_data.AppealValue = 0;
  488. }
  489. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  490. {
  491. RhythmAction_Mgr.Instance.UserMaid.status.baseAppealPoint -= 200;
  492. }
  493. for (;;)
  494. {
  495. if (!RhythmAction_Mgr.Instance.IsPause)
  496. {
  497. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  498. float num = Mathf.Sin(Mathf.Clamp01(timer / this.m_CutInTime) * 90f * 0.0174532924f);
  499. appeal_data.AppealCutInpanel.transform.localPosition = Vector3.Lerp(first_pos, Vector3.zero, num);
  500. this.m_EffectBase.transform.localPosition = appeal_data.AppealCutInpanel.transform.localPosition;
  501. appeal_data.AppealGauge = Mathf.Max((int)(first_gauge - 200f * num), 0);
  502. if (timer >= this.m_FadeStartTime)
  503. {
  504. appeal_data.AppealCutIn.alpha = 1f - Mathf.Sin(Mathf.Clamp01((timer - this.m_FadeStartTime) / this.m_FadeOutTime) * 90f * 0.0174532924f);
  505. }
  506. if (exist_cutin || !this.m_CharaAppealList.ContainsKey(DanceBattle_Mgr.CharaType.Enemy) || (!exist_cutin && !this.GetAppealData(oppnent_type).IsCutInNow))
  507. {
  508. this.m_EffectBase.color = appeal_data.AppealCutIn.color;
  509. }
  510. if (timer >= this.m_CutInTotal)
  511. {
  512. break;
  513. }
  514. }
  515. yield return null;
  516. }
  517. appeal_data.AppealGaugeEffect.SetActive(false);
  518. appeal_data.AppealCutInpanel.gameObject.SetActive(false);
  519. appeal_data.AppealCutInEffect.SetActive(false);
  520. appeal_data.IsCutInNow = false;
  521. appeal_data.AppealCutInpanel.transform.localPosition = first_pos;
  522. appeal_data.AppealGauge = appeal_data.AppealValue;
  523. if (this.m_CharaAppealList.ContainsKey(DanceBattle_Mgr.CharaType.Enemy))
  524. {
  525. if (!this.GetAppealData(oppnent_type).IsCutInNow)
  526. {
  527. this.m_AppealCutInPanel.SetActive(false);
  528. }
  529. }
  530. else
  531. {
  532. this.m_AppealCutInPanel.SetActive(false);
  533. }
  534. base.StartCoroutine(this.AppealTime(chara_type));
  535. yield break;
  536. yield break;
  537. }
  538. private IEnumerator AppealTime(DanceBattle_Mgr.CharaType chara_type)
  539. {
  540. float timer = 0f;
  541. CharaAppealData appeal_data = this.m_CharaAppealList[chara_type];
  542. appeal_data.AppelCoolFlash.alpha = 0f;
  543. while (RhythmAction_Mgr.Instance.IsPause || appeal_data.AppealCombo < this.m_AppealComboCount)
  544. {
  545. yield return null;
  546. }
  547. Note_Mgr.Instance.RecetAppealCount(chara_type);
  548. appeal_data.IsAppealNow = false;
  549. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  550. {
  551. this.m_ScreenEffect.SetActive(false);
  552. }
  553. this.GetAppealData(chara_type).AuraEffect.SetActive(false);
  554. appeal_data.TimerGauge.gameObject.SetActive(false);
  555. DanceBattle_Mgr.CharaType oppenent = DanceBattle_Mgr.GetOpponentType(chara_type);
  556. if (this.m_CharaAppealList.ContainsKey(oppenent))
  557. {
  558. this.GetAppealData(oppenent).SweatEffect.SetActive(false);
  559. appeal_data.SweatEffect.SetActive(this.GetAppealData(oppenent).IsAppealNow);
  560. }
  561. timer = 0f;
  562. appeal_data.IsAppealCoolNow = true;
  563. appeal_data.AppealCombo = 0;
  564. appeal_data.CoolTimeGauge.gameObject.SetActive(true);
  565. appeal_data.CoolTimeGauge.fillAmount = 1f;
  566. for (;;)
  567. {
  568. if (!RhythmAction_Mgr.Instance.IsPause)
  569. {
  570. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  571. if (timer > 5f + this.m_GaugeFlashTime)
  572. {
  573. break;
  574. }
  575. if (timer > 5f)
  576. {
  577. appeal_data.AppelCoolFlash.gameObject.SetActive(true);
  578. float num = timer - 5f;
  579. appeal_data.AppelCoolFlash.alpha = Mathf.Sin(Mathf.Clamp01(num / this.m_GaugeFlashTime) * 180f * 0.0174532924f);
  580. }
  581. else
  582. {
  583. appeal_data.CoolTimeGauge.fillAmount = 1f - Mathf.Clamp01(timer / 5f);
  584. }
  585. }
  586. yield return null;
  587. }
  588. appeal_data.AppelCoolFlash.gameObject.SetActive(false);
  589. appeal_data.CoolTimeGauge.gameObject.SetActive(false);
  590. appeal_data.IsAppealCoolNow = false;
  591. yield break;
  592. yield break;
  593. }
  594. private IEnumerator CutInReversal(DanceBattle_Mgr.CharaType chara_type)
  595. {
  596. float timer = 0f;
  597. CharaAppealData appeal_data = this.m_CharaAppealList[chara_type];
  598. if (!this.m_RevarsalCutInPanel.activeSelf)
  599. {
  600. this.m_RevarsalCutInPanel.SetActive(true);
  601. }
  602. Transform mask_parent = appeal_data.ReversalObj.transform;
  603. appeal_data.IsRevarsalNow = true;
  604. mask_parent.gameObject.SetActive(true);
  605. Vector3 cutin_local = Vector3.zero;
  606. appeal_data.ReversalVoice.LoadPlay(appeal_data.strReversalVoice, 0f, false, false);
  607. Appeal_Mgr.CutInMove cutInType = appeal_data.CutInType;
  608. if (cutInType != Appeal_Mgr.CutInMove.CutIn_Left)
  609. {
  610. if (cutInType == Appeal_Mgr.CutInMove.CutIn_Right)
  611. {
  612. cutin_local.x = (float)(appeal_data.ReversalCutIn.width / 2);
  613. }
  614. }
  615. else
  616. {
  617. cutin_local.x = (float)(-(float)appeal_data.ReversalCutIn.width / 2);
  618. }
  619. cutin_local.y = -this.m_ReversalCutInMove;
  620. mask_parent.localPosition = cutin_local;
  621. Vector3 first_pos = mask_parent.localPosition;
  622. Vector3 move_pos = Vector3.zero;
  623. if (appeal_data.CutInType == Appeal_Mgr.CutInMove.CutIn_Left)
  624. {
  625. move_pos = first_pos + Vector3.right * (float)appeal_data.ReversalCutIn.width + Vector3.up * this.m_ReversalCutInMove;
  626. }
  627. else
  628. {
  629. move_pos = first_pos + Vector3.left * (float)appeal_data.ReversalCutIn.width + Vector3.up * this.m_ReversalCutInMove;
  630. }
  631. for (;;)
  632. {
  633. if (!RhythmAction_Mgr.Instance.IsPause)
  634. {
  635. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  636. Vector3 localScale = mask_parent.localScale;
  637. if (timer >= 2.75f)
  638. {
  639. break;
  640. }
  641. if (timer >= 2.5f)
  642. {
  643. float num = timer - 2.5f;
  644. float y = Mathf.Cos(Mathf.Clamp01(num / 0.25f) * 90f * 0.0174532924f);
  645. localScale.y = y;
  646. mask_parent.localScale = localScale;
  647. }
  648. else if (timer < 0.5f)
  649. {
  650. float num2 = Mathf.Sin(Mathf.Clamp01(timer / 0.5f) * 90f * 0.0174532924f);
  651. mask_parent.localPosition = Vector3.Lerp(first_pos, move_pos, num2);
  652. localScale.y = num2;
  653. mask_parent.localScale = localScale;
  654. }
  655. }
  656. yield return null;
  657. }
  658. appeal_data.IsRevarsalNow = false;
  659. mask_parent.gameObject.SetActive(false);
  660. mask_parent.localPosition = first_pos;
  661. if (chara_type != DanceBattle_Mgr.CharaType.Player)
  662. {
  663. if (chara_type == DanceBattle_Mgr.CharaType.Enemy)
  664. {
  665. if (!this.GetAppealData(DanceBattle_Mgr.CharaType.Player).IsRevarsalNow)
  666. {
  667. this.m_RevarsalCutInPanel.SetActive(false);
  668. }
  669. }
  670. }
  671. else if (!this.GetAppealData(DanceBattle_Mgr.CharaType.Enemy).IsRevarsalNow)
  672. {
  673. this.m_RevarsalCutInPanel.SetActive(false);
  674. }
  675. yield break;
  676. yield break;
  677. }
  678. private IEnumerator AppealGaugeCharge()
  679. {
  680. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge && this.GetPlayerData().AppealValue == 0)
  681. {
  682. this.GetPlayerData().AppealGauge = 0;
  683. this.m_GaugeChargeEnd = true;
  684. yield break;
  685. }
  686. float timer = 0f;
  687. for (;;)
  688. {
  689. if (!RhythmAction_Mgr.Instance.IsPause && !GameMain.Instance.MainCamera.IsFadeOut())
  690. {
  691. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  692. if (timer > this.m_GaugeChargeTime)
  693. {
  694. break;
  695. }
  696. foreach (CharaAppealData charaAppealData in this.m_CharaAppealList.Values)
  697. {
  698. float num = Mathf.Sin(Mathf.Clamp01(timer / this.m_GaugeChargeTime) * 90f * 0.0174532924f);
  699. charaAppealData.AppealGauge = (int)((float)charaAppealData.AppealValue * num);
  700. }
  701. }
  702. yield return null;
  703. }
  704. base.StartCoroutine(this.GaugeFlash(DanceBattle_Mgr.CharaType.Player));
  705. if (this.m_CharaAppealList.ContainsKey(DanceBattle_Mgr.CharaType.Enemy))
  706. {
  707. base.StartCoroutine(this.GaugeFlash(DanceBattle_Mgr.CharaType.Enemy));
  708. }
  709. yield break;
  710. yield break;
  711. }
  712. private IEnumerator GaugeFlash(DanceBattle_Mgr.CharaType chara_type)
  713. {
  714. float timer = 0f;
  715. CharaAppealData appeal_data = this.GetAppealData(chara_type);
  716. appeal_data.AppealFlashGauge.gameObject.SetActive(true);
  717. appeal_data.AppealFlashGauge.alpha = 0f;
  718. for (;;)
  719. {
  720. if (!RhythmAction_Mgr.Instance.IsPause && !GameMain.Instance.MainCamera.IsFadeOut())
  721. {
  722. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  723. if (timer > this.m_GaugeFlashTime)
  724. {
  725. break;
  726. }
  727. appeal_data.AppealFlashGauge.alpha = Mathf.Sin(Mathf.Clamp01(timer / this.m_GaugeFlashTime) * 180f * 0.0174532924f);
  728. }
  729. yield return null;
  730. }
  731. appeal_data.AppealFlashGauge.gameObject.SetActive(false);
  732. this.m_GaugeChargeEnd = true;
  733. yield break;
  734. yield break;
  735. }
  736. private IEnumerator TimerGaugeFlash(DanceBattle_Mgr.CharaType chara_type)
  737. {
  738. float timer = 0f;
  739. for (;;)
  740. {
  741. if (!RhythmAction_Mgr.Instance.IsPause)
  742. {
  743. timer += RhythmAction_Mgr.Instance.DanceDeltaTime;
  744. this.GetAppealData(chara_type).TimerGauge.alpha = Mathf.Lerp(1f, this.m_FlashMinAlpha, KasaiUtility.SinRate01(timer, this.m_TimerFlash, false, false));
  745. if (timer > this.m_TimerFlash)
  746. {
  747. break;
  748. }
  749. }
  750. yield return null;
  751. }
  752. yield break;
  753. yield break;
  754. }
  755. public void AddAppealValue(DanceBattle_Mgr.CharaType chara_type, int add_value = 1)
  756. {
  757. int num = this.GetAppealData(chara_type).AppealValue + add_value;
  758. if (num % 200 == 0)
  759. {
  760. base.StartCoroutine(this.GaugeFlash(chara_type));
  761. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  762. {
  763. GameMain.Instance.SoundMgr.PlaySe(this.m_GaugeChargeSE, false);
  764. }
  765. }
  766. this.GetAppealData(chara_type).AppealValue += add_value;
  767. if (this.GetAppealData(chara_type).AppealValue > this.GetAppealData(chara_type).AppealMax)
  768. {
  769. this.GetAppealData(chara_type).AppealValue = this.GetAppealData(chara_type).AppealMax;
  770. }
  771. if (chara_type == DanceBattle_Mgr.CharaType.Player)
  772. {
  773. RhythmAction_Mgr.Instance.UserMaid.status.baseAppealPoint += add_value;
  774. }
  775. this.GetAppealData(chara_type).AppealGauge = this.GetAppealData(chara_type).AppealValue;
  776. }
  777. public override void StartAction()
  778. {
  779. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  780. {
  781. RhythmAction_Mgr.Instance.UserMaid.status.baseDance = 9999;
  782. RhythmAction_Mgr.Instance.UserMaid.status.baseAppealPoint = 2000;
  783. }
  784. this.m_CharaAppealList[DanceBattle_Mgr.CharaType.Player].AppealMax = RhythmAction_Mgr.Instance.UserMaid.status.maxAppealPoint;
  785. this.AppealDataInit(DanceBattle_Mgr.CharaType.Player);
  786. this.GetPlayerData().AppealValue = Mathf.Clamp(RhythmAction_Mgr.Instance.UserMaid.status.appealPoint, 0, this.GetPlayerData().AppealMax);
  787. if (this.m_CharaAppealList.ContainsKey(DanceBattle_Mgr.CharaType.Enemy))
  788. {
  789. this.m_CharaAppealList[DanceBattle_Mgr.CharaType.Enemy].AppealMax = DanceBattle_Mgr.EnemyData.ApeealMax;
  790. this.AppealDataInit(DanceBattle_Mgr.CharaType.Enemy);
  791. this.m_CharaAppealList[DanceBattle_Mgr.CharaType.Enemy].AppealValue = DanceBattle_Mgr.EnemyData.InitialAppeal;
  792. }
  793. else
  794. {
  795. this.m_FrontPanel.SetActive(false);
  796. foreach (Appeal_Mgr.AppealEfectData appealEfectData in this.m_EffectList)
  797. {
  798. if (appealEfectData.Charatype == DanceBattle_Mgr.CharaType.Enemy)
  799. {
  800. appealEfectData.GaugeGroup.parent.gameObject.SetActive(false);
  801. appealEfectData.ReversalCutInTex.gameObject.SetActive(false);
  802. break;
  803. }
  804. }
  805. }
  806. base.StartCoroutine(this.AppealGaugeCharge());
  807. base.StartCoroutine(this.CutInOperate());
  808. }
  809. public override void EndAction()
  810. {
  811. this.m_NotTexClear = true;
  812. foreach (CharaAppealData charaAppealData in this.m_CharaAppealList.Values)
  813. {
  814. UnityEngine.Object.Destroy(charaAppealData.AudioSE.gameObject);
  815. }
  816. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Player);
  817. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Enemy);
  818. if (!RhythmAction_Mgr.Instance.DanceEnd)
  819. {
  820. return;
  821. }
  822. bool flag = RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS && RhythmAction_Mgr.NowState == RhythmAction_Mgr.DanceState.Dance_First;
  823. if (flag && DanceBattle_Mgr.Instance.IsWin())
  824. {
  825. ShootCutInTex.SetEnemyCutInTex(true);
  826. }
  827. }
  828. public void AppealCutIn(DanceBattle_Mgr.CharaType chara_type)
  829. {
  830. this.GetAppealData(chara_type).IsAppealNow = true;
  831. this.GetAppealData(chara_type).IsCutInNow = true;
  832. this.GetAppealData(chara_type).AuraEffect.SetActive(true);
  833. this.GetAppealData(chara_type).SweatEffect.SetActive(false);
  834. DanceBattle_Mgr.CharaType opponentType = DanceBattle_Mgr.GetOpponentType(chara_type);
  835. if (this.m_CharaAppealList.ContainsKey(opponentType) && !this.GetAppealData(opponentType).IsAppealNow)
  836. {
  837. this.GetAppealData(opponentType).SweatEffect.SetActive(true);
  838. }
  839. base.StartCoroutine(this.CutIn(chara_type));
  840. }
  841. public void ReversalCutIn(DanceBattle_Mgr.CharaType chara_type)
  842. {
  843. if (this.GetAppealData(chara_type).IsRevarsalNow)
  844. {
  845. return;
  846. }
  847. base.StartCoroutine(this.CutInReversal(chara_type));
  848. }
  849. public CharaAppealData GetAppealData(DanceBattle_Mgr.CharaType chara_type)
  850. {
  851. return this.m_CharaAppealList[chara_type];
  852. }
  853. public CharaAppealData GetPlayerData()
  854. {
  855. return this.GetAppealData(DanceBattle_Mgr.CharaType.Player);
  856. }
  857. public void AddAppealCombo(DanceBattle_Mgr.CharaType chara_type)
  858. {
  859. if (!this.m_CharaAppealList.ContainsKey(chara_type))
  860. {
  861. return;
  862. }
  863. this.GetAppealData(chara_type).AppealCombo++;
  864. this.GetAppealData(chara_type).TimerGauge.fillAmount = 1f - Mathf.Clamp01((float)this.GetAppealData(chara_type).AppealCombo / (float)this.m_AppealComboCount);
  865. base.StartCoroutine(this.TimerGaugeFlash(chara_type));
  866. }
  867. public static string GradeTostring(Appeal_Mgr.CutInGrade grade)
  868. {
  869. string result = grade.ToString();
  870. if (grade != Appeal_Mgr.CutInGrade.High)
  871. {
  872. if (grade == Appeal_Mgr.CutInGrade.Low)
  873. {
  874. result = "Cut In Only";
  875. }
  876. }
  877. else
  878. {
  879. result = "Cut In + Effect";
  880. }
  881. return result;
  882. }
  883. public static Appeal_Mgr.CutInGrade ParseGrade(string text_data)
  884. {
  885. Appeal_Mgr.CutInGrade result = Appeal_Mgr.CutInGrade.None;
  886. try
  887. {
  888. result = (Appeal_Mgr.CutInGrade)Enum.Parse(typeof(Appeal_Mgr.CutInGrade), text_data);
  889. }
  890. catch
  891. {
  892. if (text_data != null)
  893. {
  894. if (text_data == "Cut In + Effect")
  895. {
  896. result = Appeal_Mgr.CutInGrade.High;
  897. goto IL_70;
  898. }
  899. if (text_data == "Cut In Only")
  900. {
  901. result = Appeal_Mgr.CutInGrade.Low;
  902. goto IL_70;
  903. }
  904. }
  905. Debug.LogErrorFormat("文字データ「{0}」はAppeal_Mgr.CutInGradeに変換できません", new object[]
  906. {
  907. text_data
  908. });
  909. IL_70:;
  910. }
  911. return result;
  912. }
  913. private const string m_GaugeObj_Path = "SceneDance/Rhythm_Action/Prefab/AppealGauge";
  914. private const float m_AppealCoolTime = 5f;
  915. private const float m_ReversalTime = 0.5f;
  916. private const float m_ReversalCutInWait = 2f;
  917. private const float m_ReversalFade = 0.25f;
  918. private const int m_GaugeNum = 10;
  919. public const int AppealMax = 2000;
  920. public const int OneGaugeValue = 200;
  921. private const int m_BenchAppeal = 6;
  922. public const string SpecialLowString = "Cut In Only";
  923. public const string SpecialHighString = "Cut In + Effect";
  924. [SerializeField]
  925. [Header("アピール効果を得られるコンボ数")]
  926. private int m_AppealComboCount = 30;
  927. [SerializeField]
  928. [Header("カットイン時間")]
  929. private float m_CutInTime = 0.25f;
  930. [SerializeField]
  931. [Header("カットイン画像滞在時間")]
  932. private float m_FadeStartTime = 1.75f;
  933. [SerializeField]
  934. [Header("カットイン画像フェードアウト時間")]
  935. private float m_FadeOutTime = 0.25f;
  936. [SerializeField]
  937. [Header("アピール用SE")]
  938. private string m_CutInSE = "SEAppeal";
  939. [SerializeField]
  940. private string m_GaugeChargeSE = "SE038.ogg";
  941. [SerializeField]
  942. private float m_ReversalCutInMove = 256f;
  943. [SerializeField]
  944. [Header("アピールゲージ配置間隔")]
  945. private Vector2 m_SetSpace = new Vector2(40f, 50f);
  946. [SerializeField]
  947. [Header("チャージできないときの色")]
  948. private Color m_NotChargeColor;
  949. [SerializeField]
  950. [Header("画面全体エフェクト")]
  951. private GameObject m_ScreenEffect;
  952. private float m_GaugeHeight;
  953. private Dictionary<DanceBattle_Mgr.CharaType, CharaAppealData> m_CharaAppealList = new Dictionary<DanceBattle_Mgr.CharaType, CharaAppealData>();
  954. [SerializeField]
  955. [Header("プレイヤー・敵ごとのエフェクトリスト")]
  956. private List<Appeal_Mgr.AppealEfectData> m_EffectList = new List<Appeal_Mgr.AppealEfectData>
  957. {
  958. new Appeal_Mgr.AppealEfectData(DanceBattle_Mgr.CharaType.Player),
  959. new Appeal_Mgr.AppealEfectData(DanceBattle_Mgr.CharaType.Enemy)
  960. };
  961. [SerializeField]
  962. [Header("カットインエフェクト位置の基準になる画像")]
  963. private UI2DSprite m_EffectBase;
  964. [SerializeField]
  965. [Header("後アピールカットインパネル")]
  966. private GameObject m_BackPanel;
  967. [SerializeField]
  968. private UI2DSprite m_BackCutInSprite;
  969. [SerializeField]
  970. [Header("前アピールカットインパネル")]
  971. private GameObject m_FrontPanel;
  972. [SerializeField]
  973. private UI2DSprite m_FrontCutInSprite;
  974. [SerializeField]
  975. [Header("アピールカットイン親")]
  976. private GameObject m_AppealCutInPanel;
  977. [SerializeField]
  978. [Header("逆転カットインパネル親")]
  979. private GameObject m_RevarsalCutInPanel;
  980. [SerializeField]
  981. private float m_GaugeChargeTime = 0.25f;
  982. [SerializeField]
  983. private float m_GaugeFlashTime = 0.25f;
  984. [SerializeField]
  985. [Header("アピール可能数を表示するUI")]
  986. private UILabel m_AppealcountLabel;
  987. [SerializeField]
  988. [Header("タイマーゲージの点滅間隔")]
  989. private float m_TimerFlash = 0.5f;
  990. [SerializeField]
  991. [Range(0f, 1f)]
  992. private float m_FlashMinAlpha = 0.5f;
  993. [SerializeField]
  994. [Header("カットインSEのボリューム")]
  995. [Range(0f, 1f)]
  996. private float m_CutinSeVol = 0.5f;
  997. private ShootCutInTex.CutInName m_NowCutIn = ShootCutInTex.CutInName.ジョブ固有;
  998. private bool m_GaugeChargeEnd;
  999. private bool m_NotTexClear;
  1000. private bool m_VsSkip1st;
  1001. private static Appeal_Mgr m_Instance;
  1002. public enum CutInGrade
  1003. {
  1004. High,
  1005. Low,
  1006. None
  1007. }
  1008. public enum CutInMove
  1009. {
  1010. CutIn_Right,
  1011. CutIn_Left
  1012. }
  1013. [Serializable]
  1014. private class AppealEfectData
  1015. {
  1016. public AppealEfectData(DanceBattle_Mgr.CharaType chara_type)
  1017. {
  1018. this.Charatype = chara_type;
  1019. }
  1020. public DanceBattle_Mgr.CharaType Charatype;
  1021. public Appeal_Mgr.CutInMove CutInType;
  1022. public UI2DSprite ReversalCutInTex;
  1023. public Transform GaugeGroup;
  1024. public GameObject GaugeEffect;
  1025. public UIBasicSprite AppealFlashGauge;
  1026. public UIBasicSprite CoolTimeGauge;
  1027. public UIBasicSprite AppelCoolFlash;
  1028. public AudioSource CutinAudio;
  1029. public GameObject ReversalObj;
  1030. public UIBasicSprite TimerGauge;
  1031. public GameObject SweatEffect;
  1032. public GameObject AuraEffect;
  1033. }
  1034. }