Clean up hardcoded UI paths.

This commit is contained in:
2023-11-10 14:45:23 +08:00
parent 8089e724f9
commit b50f771d6e
5 changed files with 47 additions and 75 deletions

View File

@@ -22,6 +22,8 @@ namespace Cryville.Crtr.UI {
TMP_Text m_title;
[SerializeField]
GameObject[] m_backBlockingObjects;
[SerializeField]
GameObject m_contents;
#pragma warning restore IDE0044
int frameIndex = 2;
@@ -30,7 +32,7 @@ namespace Cryville.Crtr.UI {
#pragma warning disable IDE0051
void Awake() {
Game.Init();
transform.parent.Find("Canvas/Contents").gameObject.SetActive(true);
m_contents.SetActive(true);
m_settingsPanel.Adapter = new DefaultPropertyMasterAdapter(Settings.Default);
PushTitle("Chart Browser");
}