1234567891011121314151617181920212223242526272829 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class OpenMainView : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- public void OpenView()
- {
- Debug.Log("has open the Main view");
-
- IEnumerator coroutine = OpenMainViewStart();
- StartCoroutine(coroutine);
- }
- public IEnumerator OpenMainViewStart()
- {
- yield return null;
- UIModule.OpenView(ViewID.Main);
-
- }
- }
|