Ejemplo n.º 1
0
 public void Clear()
 {
     srcFormScript                = null;
     srcWidget                    = null;
     srcWidgetScript              = null;
     srcWidgetBelongedListScript  = null;
     SrcWidgetIndexInBelongedList = -1;
     pointerEventData             = null;
     eventID = enUIEventID.None;
     inUse   = false;
 }
Ejemplo n.º 2
0
 public void Enable(UIListScript belongedList, int index, string name, ref stRect rect, bool selected)
 {
     belongedListScript = belongedList;
     m_index            = index;
     gameObject.name    = name + "_" + index.ToString();
     if (m_useSetActiveForDisplay)
     {
         base.gameObject.SetActive(true);
     }
     else
     {
         m_canvasGroup.alpha          = 1f;
         m_canvasGroup.blocksRaycasts = true;
     }
     SetComponentBelongedList(gameObject);
     SetRect(ref rect);
     ChangeDisplay(selected);
     DispatchOnEnableEvent();
 }
Ejemplo n.º 3
0
 public void SetBelongedList(UIListScript uiBelongedListScript, int index)
 {
     belongedListScript = uiBelongedListScript;
     indexInList        = index;
 }
Ejemplo n.º 4
0
 protected virtual void OnDestroy()
 {
     belongedFormScript = null;
     belongedListScript = null;
     widgets            = null;
 }