StoryE23P2.cs 721 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections;
  3. using UnityEngine;
  4. public class StoryE23P2 : 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?(1));
  15. R.Ui.Tutorial.Hide(new int?(2));
  16. }
  17. }
  18. private IEnumerator Sequence0()
  19. {
  20. yield return R.Ui.Tutorial.Show(1);
  21. yield return new WaitForSeconds(5f);
  22. yield return R.Ui.Tutorial.Hide(new int?(1));
  23. yield return new WaitForSeconds(2f);
  24. yield return R.Ui.Tutorial.Show(2);
  25. yield return new WaitForSeconds(10f);
  26. yield return R.Ui.Tutorial.Hide(new int?(2));
  27. yield break;
  28. }
  29. }