Fix singleton pattern.
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user