using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; namespace Ichni.StartMenu { public class LoadProjectTab : MonoBehaviour { public string projectName; public TMP_Text projectNameText, lastSavedTimeText, songNameText; public Button loadButton; public void SetUpTab(string projectName, string lastSavedTime, string songName) { this.projectName = projectName; projectNameText.text = projectName; lastSavedTimeText.text = lastSavedTime; songNameText.text = songName; loadButton.onClick.AddListener(LoadProject); } public void LoadProject() { // var b = IchniApp.instance.GetModel(); // if (b == null) Debug.LogError("XXX"); // b.isLoadedProject = true; // IchniApp.instance.GetModel().loadingFolder = projectName; // StartPageManager.startPageManager.GoToEditScene(); } } }