//TODO: probably i need to replace this hardcode to config. public void StartInfinityLevel(InfinityLevelTypes levelType) { if (levelType == InfinityLevelTypes.Moon) { Debug.Log($"{levelType} is in the work now"); return; } else if (levelType == InfinityLevelTypes.Lava) { Debug.Log($"{levelType} is in the work now"); return; } SceneManager.LoadScene($"{levelType}SceneInfinity"); }
//TODO: probably i have to create an event and call it here. private void HandlePressedButton(InfinityLevelTypes levelType) { MainMenuController.sceneController.StartInfinityLevel(levelType); }
private void OnButtonPressed(InfinityLevelTypes levelTypes) { onButtonPressed?.Invoke(levelTypes); }