private void ResetPartDef(PlayerPartDef partDef) { if (partInfo == null) { partInfo = new PartWindowInfo(); } else { partInfo.Clear(); } editPartDef = partDef; RefreshWindowTitle(); }
private void OnDestroy() { // Debug.LogError($"OnDestroy"); partInfo.Clear(); partInfo = null; }