public void createTrackSelectButton(LiveTrackProxy track) { GameObject trackBtn = GameObject.Instantiate(((LiveSongProxyController)LiveSongProxyController.instance).trackSelectPrefab); CrystalSelectDatabinder btn = trackBtn.GetComponent<CrystalSelectDatabinder>(); btn.setText(track.proxyName); btn.init(track, trackBtn.GetComponentInChildren<ButtonDemoToggle>()); //track.clipParent.GetComponent<RadialHologram>().origin = btn.transform; btn.track = track; btn.transform.SetParent(trackPickerParent, false); }
public void init(LiveProxy proxy, ButtonDemoToggle button) { track = (LiveTrackProxy)proxy; this.button = button; AddWidget(button); }