1234567891011121314151617181920212223242526272829303132 |
- using System;
- using UnityEngine;
- public class BattleStroy : BaseBehaviour
- {
- private bool show
- {
- get
- {
- return RoundStorage.Get("BattleStory" + LevelManager.SceneName + base.name, false);
- }
- set
- {
- RoundStorage.Set("BattleStory" + LevelManager.SceneName + base.name, value);
- }
- }
- private void Update()
- {
- if (this.battle.isBattleOver && !this.show)
- {
- this.show = true;
- R.Audio.PlayVoiceOver(this.text, null, false);
- }
- }
- [SerializeField]
- private BattleCheckPoint battle;
- [SerializeField]
- private string text;
- }
|