private void Awake() { foreach (Component c in GetComponents(typeof(Component))) { IInitialized i = c as IInitialized; if (i != null) { i.Initialize(); } } //if (TitleSceneData.newGame) { //if (true) { ScreenManager.instance.DisplayCanvas("New Game"); //} }
public MenuItem(string name, IInitialized viewModel) { Name = name; ViewModel = viewModel; }