BattleStroy.cs 580 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UnityEngine;
  3. public class BattleStroy : BaseBehaviour
  4. {
  5. private bool show
  6. {
  7. get
  8. {
  9. return RoundStorage.Get("BattleStory" + LevelManager.SceneName + base.name, false);
  10. }
  11. set
  12. {
  13. RoundStorage.Set("BattleStory" + LevelManager.SceneName + base.name, value);
  14. }
  15. }
  16. private void Update()
  17. {
  18. if (this.battle.isBattleOver && !this.show)
  19. {
  20. this.show = true;
  21. R.Audio.PlayVoiceOver(this.text, null, false);
  22. }
  23. }
  24. [SerializeField]
  25. private BattleCheckPoint battle;
  26. [SerializeField]
  27. private string text;
  28. }