StoryE7P2.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Collections;
  3. using UnityEngine;
  4. public class StoryE7P2 : BaseBehaviour
  5. {
  6. private bool _e7p5
  7. {
  8. get
  9. {
  10. return RoundStorage.Get("E7_P5 ", false);
  11. }
  12. set
  13. {
  14. RoundStorage.Set("E7_P5", value);
  15. }
  16. }
  17. private bool _e7p6
  18. {
  19. get
  20. {
  21. return RoundStorage.Get("E7_P6", false);
  22. }
  23. set
  24. {
  25. RoundStorage.Set("E7_P6", value);
  26. }
  27. }
  28. private bool _e7p7
  29. {
  30. get
  31. {
  32. return RoundStorage.Get("E7_P7", false);
  33. }
  34. set
  35. {
  36. RoundStorage.Set("E7_P7", value);
  37. }
  38. }
  39. private bool _e7p8
  40. {
  41. get
  42. {
  43. return RoundStorage.Get("E7_P8", false);
  44. }
  45. }
  46. private bool gateClose
  47. {
  48. get
  49. {
  50. return RoundStorage.Get("E7_CloseGate", false);
  51. }
  52. set
  53. {
  54. RoundStorage.Set("E7_CloseGate", value);
  55. }
  56. }
  57. private void Start()
  58. {
  59. if (this.gateClose)
  60. {
  61. this.gate.openType = SceneGate.OpenType.None;
  62. this._battleZoneGate.Appear();
  63. }
  64. this._e7p5 = true;
  65. if (this._e7p6)
  66. {
  67. this._e7p7 = true;
  68. base.StartCoroutine(this.Sequence0());
  69. }
  70. if (this._e7p8 && !this.gateClose)
  71. {
  72. R.Audio.PlayVoiceOver("e7t10", null, false);
  73. this.gateClose = true;
  74. this.gate.openType = SceneGate.OpenType.None;
  75. this._battleZoneGate.Appear();
  76. }
  77. }
  78. private IEnumerator Sequence0()
  79. {
  80. yield return R.Audio.PlayVoiceOver("e7t8", null, false);
  81. this.gateClose = true;
  82. this.gate.openType = SceneGate.OpenType.None;
  83. this._battleZoneGate.Appear();
  84. yield break;
  85. }
  86. [SerializeField]
  87. private SceneGate gate;
  88. [SerializeField]
  89. private BattleZoneGate _battleZoneGate;
  90. }