StartMenu!
This commit is contained in:
35
Assets/Scripts/StartMenu/LoadProjectTab.cs
Normal file
35
Assets/Scripts/StartMenu/LoadProjectTab.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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<InformationTransistor>();
|
||||
// if (b == null) Debug.LogError("XXX");
|
||||
// b.isLoadedProject = true;
|
||||
// IchniApp.instance.GetModel<InformationTransistor>().loadingFolder = projectName;
|
||||
// StartPageManager.startPageManager.GoToEditScene();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user