OpenMainView.cs 571 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class OpenMainView : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. }
  10. // Update is called once per frame
  11. public void OpenView()
  12. {
  13. Debug.Log("has open the Main view");
  14. IEnumerator coroutine = OpenMainViewStart();
  15. StartCoroutine(coroutine);
  16. }
  17. public IEnumerator OpenMainViewStart()
  18. {
  19. yield return null;
  20. UIModule.OpenView(ViewID.Main);
  21. }
  22. }