public virtual void Release() { if (this.m_Source != null) { this.m_Source.Release(); this.m_Source = (ContentSource)null; } this.DestroyNode(); }
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); }
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); } }
public virtual void Initialize(ContentSource source) { }