PrincipleUIControl.cs 539 B

123456789101112131415161718192021222324
  1. using QFramework;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class PrincipleUIControl : MonoBehaviour
  6. {
  7. public static PrincipleUIControl instance;
  8. public string PrincipleName;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. instance = this;
  13. ResKit.Init();
  14. UIKit.OpenPanel<PrinciplePanel>(new PrinciplePanelData() {TitleName = PrincipleName });
  15. }
  16. // Update is called once per frame
  17. void Update()
  18. {
  19. }
  20. }