예제 #1
0
 protected override void OnDestroy()
 {
     if (LeanTween.IsInitialised())
     {
         LeanTween.cancel(base.gameObject);
     }
     this.m_ZeroTipsObj          = null;
     this.m_elementTemplate      = null;
     this.m_scrollRect           = null;
     this.m_content              = null;
     this.m_contentRectTransform = null;
     this.m_scrollBar            = null;
     this.m_extraContent         = null;
     if (this.m_elementScripts != null)
     {
         this.m_elementScripts.Clear();
         this.m_elementScripts = null;
     }
     if (this.m_unUsedElementScripts != null)
     {
         this.m_unUsedElementScripts.Clear();
         this.m_unUsedElementScripts = null;
     }
     base.OnDestroy();
 }
예제 #2
0
 private void OnDestroy()
 {
     if (LeanTween.IsInitialised())
     {
         LeanTween.cancel(base.gameObject);
     }
 }
예제 #3
0
 public void ResetContentPosition()
 {
     if (LeanTween.IsInitialised())
     {
         LeanTween.cancel(base.gameObject);
     }
     if (this.m_contentRectTransform != null)
     {
         this.m_contentRectTransform.anchoredPosition = Vector2.zero;
     }
 }