public void Dispose() { if (_sites != null) { for (int i = 0; i < _sites.Count; i++) { Site site = _sites [i]; site.Dispose(); } _sites.Clear(); _sites = null; } }
//jf is never called public void Dispose() { if (Debug.isDebugBuild) { Debug.Log("ERROR, SiteList.Dispose!!"); //jf } if (_sites != null) { for (int i = 0; i < _sites.Count; i++) { Site site = _sites [i]; site.Dispose(); } _sites.Clear(); _sites = null; } }