コード例 #1
0
        //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");
        }
コード例 #2
0
 //TODO: probably i have to create an event and call it here.
 private void HandlePressedButton(InfinityLevelTypes levelType)
 {
     MainMenuController.sceneController.StartInfinityLevel(levelType);
 }
コード例 #3
0
 private void OnButtonPressed(InfinityLevelTypes levelTypes)
 {
     onButtonPressed?.Invoke(levelTypes);
 }