MineWIndowManager.cs 515 B

12345678910111213141516171819202122232425
  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.windowChanage(duoYuYan,mainGo);
  11. duoYuYan.SetActive(true);
  12. mainGo.SetActive(false);
  13. }
  14. public void gotoMain()
  15. {
  16. duoYuYan.SetActive(false);
  17. mainGo.SetActive(true);
  18. }
  19. void OnEnable()
  20. {
  21. gotoMain();
  22. }
  23. }