TestScript.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections.Generic;
  4. public class TestScript : MonoBehaviour
  5. {
  6. #region Config
  7. //StartMark-Used by LabelUtility-Do not remove
  8. private Text Title;
  9. private Button Button;
  10. private VirtualScrollRectPlus GameObject;
  11. //EndMark-Used by LabelUtility-Do not remove
  12. #endregion
  13. private void Regist()
  14. {
  15. //RegistStartMark-Used by LabelUtility-Do not remove
  16. Dictionary<string, Transform> childDictionary = new Dictionary<string, Transform>();
  17. Auxiliary.CompileDic(transform, childDictionary);
  18. Title = childDictionary[TestLabel.Title].GetComponent<Text>();
  19. Button = childDictionary[TestLabel.Button].GetComponent<Button>();
  20. GameObject = childDictionary[TestLabel.GameObject].GetComponent<VirtualScrollRectPlus>();
  21. //RegistEndMark-Used by LabelUtility-Do not remove
  22. //RegistEventStartMark-Used by LabelUtility-Do not remove
  23. //RegistEventEndMark-Used by LabelUtility-Do not remove
  24. }
  25. //EventStartMark-Used by LabelUtility-Do not remove
  26. //EventEndMark-Used by LabelUtility-Do not remove
  27. }