Exemplo n.º 1
0
 public virtual void Release()
 {
     if (this.m_Source != null)
     {
         this.m_Source.Release();
         this.m_Source = (ContentSource)null;
     }
     this.DestroyNode();
 }
Exemplo n.º 2
0
 public void SetCurrentSource(ContentSource source)
 {
     if (this.m_Source != null)
     {
         this.m_Source.Release();
     }
     this.m_Source = source;
     if (this.m_Source == null)
     {
         return;
     }
     this.m_Source.Initialize(this);
 }
Exemplo n.º 3
0
 public virtual void Initialize(ContentSource source, Vector2 pos)
 {
     this.InitializeParam();
     if (!this.m_NodeStatic)
     {
         this.anchoredPosition = pos;
         if (source != null)
         {
             this.SetCurrentSource(source);
         }
         this.Resize(0);
         this.CreateNode();
     }
     else
     {
         List <ContentNode> nodeChilds = this.GetNodeChilds();
         this.anchoredPosition = pos;
         this.Resize(nodeChilds.Count);
         this.CreateStaticNode(nodeChilds);
     }
 }
Exemplo n.º 4
0
 public virtual void Initialize(ContentSource source)
 {
 }