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(); }
private void OnDestroy() { if (LeanTween.IsInitialised()) { LeanTween.cancel(base.gameObject); } }
public void ResetContentPosition() { if (LeanTween.IsInitialised()) { LeanTween.cancel(base.gameObject); } if (this.m_contentRectTransform != null) { this.m_contentRectTransform.anchoredPosition = Vector2.zero; } }