public void Hide() { if (qtMesh == null) { QTManager.Instance.activeTerrain.RemoveFromUpdateList(this); } else { qtMesh.Destroy(); qtMesh = null; } QTManager.Instance.activeTerrain.activeNodeListArray [lodLevel].Remove(this); isDisplay = false; }
private void Hide(bool isDestroy = false) { if (qtMesh == null) { QTManager.Instance.activeTerrain.RemoveFromUpdateList(this); } else { qtMesh.gameObject.SetActive(false); if (isDestroy) { qtMesh.Destroy(); qtMesh = null; } } QTManager.Instance.activeTerrain.activeNodeListArray [lodLevel].Remove(this); isDisplay = false; }