StoryE23P3.cs 622 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections;
  3. using UnityEngine;
  4. public class StoryE23P3 : BaseBehaviour
  5. {
  6. private void Start()
  7. {
  8. base.StartCoroutine(this.Sequence0());
  9. }
  10. private void OnDestroy()
  11. {
  12. if (!SingletonMono<UIController>.ApplicationIsQuitting)
  13. {
  14. R.Ui.Tutorial.Hide(new int?(3));
  15. R.Ui.Tutorial.DisposeVideo();
  16. }
  17. }
  18. private IEnumerator Sequence0()
  19. {
  20. yield return R.Ui.Tutorial.Show(3);
  21. yield return R.Ui.Tutorial.PlayVideo("Movies/ps4/tutorial", "1.mp4");
  22. yield return new WaitForSeconds(1f);
  23. yield return R.Ui.Tutorial.Hide(new int?(3));
  24. yield break;
  25. }
  26. }