Reuse scripts instead of copypaste code

This commit is contained in:
2025-09-05 20:24:44 -07:00
parent a426a26f09
commit 7a5cc54d35
11 changed files with 214 additions and 150 deletions

View File

@@ -12,7 +12,6 @@ public class Iconsmenu : MonoBehaviour
public GameObject marketplaceIconsPanel;
public GameObject marketplaceIconsContent;
public GameObject marketplaceIconsSample;
public Button backButton;
public Sprite defaultIcon;
public Button placeholderButton;
public TMP_Text selectionText;
@@ -91,10 +90,6 @@ public class Iconsmenu : MonoBehaviour
SwitchToMarketplaceIcons();
}
placeholderButton.onClick.AddListener(ToggleKit);
backButton.onClick.AddListener(async () =>
{
await SceneManager.LoadSceneAsync("MainMenu");
});
previewBird.GetComponentInParent<Button>().onClick.AddListener(() =>
{
var scale = previewBird.transform.localScale;