public override void Awake()
 {
     base.Awake();
     _uiTable = GetComponent<UITable>();
     _uiGrid = GetComponent<UIGrid>();
     _itemTemplate = gameObject.GetComponent<NguiListItemTemplate>();
 }
 public override void Awake()
 {
     base.Awake();
     _uiTable      = GetComponent <UITable>();
     _uiGrid       = GetComponent <UIGrid>();
     _itemTemplate = gameObject.GetComponent <NguiListItemTemplate>();
 }
Ejemplo n.º 3
0
 public override void Awake()
 {
     base.Awake();
     _groupNumber = Random.Range(1, 10000);
     if (_usedGroupNumbers.Contains(_groupNumber))
         _groupNumber++;
     _usedGroupNumbers.Add(_groupNumber);
     _uiTable = GetComponent<UITable>();
     _uiGrid = GetComponent<UIGrid>();
     _itemTemplate = gameObject.GetComponent<NguiListItemTemplate>();
     scrollRect = transform.parent.GetComponent<ScrollRect>();
 }
Ejemplo n.º 4
0
 // FooterGridLayoutGroup footer;
 public override void Awake()
 {
     base.Awake();
     _groupNumber = Random.Range(1, 10000);
     if (_usedGroupNumbers.Contains(_groupNumber))
     {
         _groupNumber++;
     }
     _usedGroupNumbers.Add(_groupNumber);
     _uiTable      = GetComponent <UITable>();
     _uiGrid       = GetComponent <UIGrid>();
     _itemTemplate = gameObject.GetComponent <NguiListItemTemplate>();
     if (transform.parent != null)
     {
         _scrollRect = transform.parent.GetComponent <ScrollRect> ();
     }
     //if(_scrollRect)
     //GridController = _scrollRect.transform.parent.GetComponent<LeaderboardsGridController>();
     //footer = gameObject.GetComponent<FooterGridLayoutGroup>();
 }