예제 #1
0
 /// <summary>
 /// Awakes this instance. Attempts to find the GUI root and scroll view if they weren't
 /// set.
 /// </summary>
 public void Awake()
 {
     IsOpen = false;
     if (guiRoot == null)
     {
         guiRoot = GetComponentInChildren <GUIRoot>();
     }
     if (scrollView == null)
     {
         scrollView = GetComponentInChildren <GUIScrollView>();
     }
     if (scrollView != null)
     {
         scrollView.MeasureContentHandler += OnMeasureContent;
         scrollView.DrawContentHandler    += OnDrawContent;
     }
 }
 /// <summary>
 /// Attempts to find the GUI root and scroll view if they weren't set.
 /// Sets up the scroll view.
 /// </summary>
 public override void Awake()
 {
     base.Awake();
     if (guiRoot == null)
     {
         guiRoot = GetComponentInChildren <GUIRoot>();
     }
     if (scrollView == null)
     {
         scrollView = GetComponentInChildren <GUIScrollView>();
     }
     if (scrollView != null)
     {
         scrollView.MeasureContentHandler += OnMeasureContent;
         scrollView.DrawContentHandler    += OnDrawContent;
     }
 }
 /// <summary>
 /// Attempts to find the GUI root and scroll view if they weren't set.
 /// Sets up the scroll view.
 /// </summary>
 public override void Awake()
 {
     base.Awake();
     if (guiRoot == null)
     {
         guiRoot = GetComponentInChildren <GUIRoot>();
     }
     if (scrollView == null)
     {
         scrollView = GetComponentInChildren <GUIScrollView>();
     }
     if (scrollView != null)
     {
         scrollView.MeasureContentHandler += OnMeasureContent;
         scrollView.DrawContentHandler    += OnDrawContent;
     }
     if (string.IsNullOrEmpty(groupHeadingGuiStyleName))
     {
         groupHeadingGuiStyleName = questHeadingGuiStyleName;
     }
 }
 /// <summary>
 /// Attempts to find the GUI root and scroll view if they weren't set.
 /// Sets up the scroll view.
 /// </summary>
 public override void Awake()
 {
     base.Awake();
     if (guiRoot == null) guiRoot = GetComponentInChildren<GUIRoot>();
     if (scrollView == null) scrollView = GetComponentInChildren<GUIScrollView>();
     if (scrollView != null) {
         scrollView.MeasureContentHandler += OnMeasureContent;
         scrollView.DrawContentHandler += OnDrawContent;
     }
 }