Clean up hardcoded UI paths.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user