MineWIndowManager.cs 567 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class MineWIndowManager : MonoBehaviour
  5. {
  6. public GameObject mainGo;
  7. public GameObject duoYuYan;
  8. public void gotoDYY()
  9. {
  10. QuanJuBackManager.Instance.nowWindow = duoYuYan;
  11. QuanJuBackManager.Instance.setStack(mainGo);
  12. duoYuYan.SetActive(true);
  13. mainGo.SetActive(false);
  14. }
  15. public void gotoMain()
  16. {
  17. duoYuYan.SetActive(false);
  18. mainGo.SetActive(true);
  19. }
  20. void OnEnable()
  21. {
  22. gotoMain();
  23. }
  24. }