Fix singleton pattern.

This commit is contained in:
2023-11-30 15:04:36 +08:00
parent 7f8c0b5eec
commit 59339d5bc6
2 changed files with 4 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ namespace Cryville.Crtr.Browsing.UI {
public ActionManager Actions { get; private set; } public ActionManager Actions { get; private set; }
protected override void Awake() { protected override void Awake() {
base.Awake();
Actions = new ActionManager(); Actions = new ActionManager();
Actions.Register(new PlayChartAction()); Actions.Register(new PlayChartAction());

View File

@@ -26,6 +26,8 @@ namespace Cryville.Crtr.UI {
int totalTasks = 0; int totalTasks = 0;
#pragma warning disable IDE0051 #pragma warning disable IDE0051
protected override void Awake() { protected override void Awake() {
base.Awake();
Game.Init(); Game.Init();
m_contents.SetActive(true); m_contents.SetActive(true);
PushTitle("Chart Browser"); PushTitle("Chart Browser");