SUIPanelStart.cs 740 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class SUIPanelStart : SFramework.SUIObjectBase {
  5. private GameObject _textWelcome;
  6. public override void UI_Awake()
  7. {
  8. GameObject canvas = GameObject.Find("Canvas_Start(Clone)");
  9. Debug.Assert(canvas != null);
  10. _rootPanel = canvas.transform.Find("Panel_Start").gameObject;
  11. Debug.Assert(_rootPanel != null);
  12. _textWelcome = _rootPanel.transform.Find("Text_Welcome").gameObject;
  13. Debug.Assert(_textWelcome != null);
  14. }
  15. public override void UI_Start()
  16. {
  17. _textWelcome.GetComponent<UnityEngine.UI.Text>().text = "jxf Welcome to start scene.\nControl by SUIPanelStart.";
  18. }
  19. }