using System; using System.Collections.Generic; using UnityEngine; public class CustomizePartUI : WPFMonoBehaviour { public void InitButtons(PartListing partListing, Action onButtonPressed) { this.cachedPartListing = partListing; this.onButtonPressed = onButtonPressed; if (this.initButtonsDone) { return; } if (this.customPartWidget != null) { Transform transform = this.cachedPartListing.transform.Find("Close"); if (transform) { this.customPartWidget.closeButton = transform.GetComponent