Beispiel #1
0
        private void Update()
        {
            if (InteractableManager.InteractableList.Length == 0)
            {
                return;
            }

            if (GameManager.Mode == GameMode.Rehearsal)
            {
                if (!isNextHighlighted)
                {
                    InteractablePath.InitializeNextInteractable();
                    isNextHighlighted = true;
                }

                if (InteractablePath.PathComplete)
                {
                    GameManager.State = GameState.End;
                    EndGameUI.ToggleOn();
                }
                else if (LevelManager.IsMultiLevelGame && ShowLevelComplete)
                {
                    GameManager.State = GameState.Menu;
                    if (!GameManager.TutorialMode)
                    {
                        LevelClearUI.ToggleOn();
                    }
                }
            }
            else if (GameManager.Mode == GameMode.Recall)
            {
                if (InteractableLog.PathComplete)
                {
                    GameManager.State = GameState.End;
                    EndGameUI.ToggleOn();
                }
                else if (LevelManager.IsMultiLevelGame && ShowLevelComplete)
                {
                    GameManager.State = GameState.Menu;
                    if (!GameManager.TutorialMode)
                    {
                        LevelClearUI.ToggleOn();
                    }
                }
            }
        }
Beispiel #2
0
        private void Update()
        {
            if (InteractableManager.InteractableList.Length == 0)
            {
                return;
            }

            if (GameManager.Mode == GameMode.Rehearsal)
            {
                if (!isNextHighlighted)
                {
                    InteractablePath.InitializeNextInteractable();
                    isNextHighlighted = true;
                }

                if (InteractablePath.PathComplete)
                {
                    GameManager.State = GameState.End;
                    EndGameUI.ToggleOn();
                }
                else if (LevelManager.IsMultiLevelGame && ShowLevelComplete)
                {
                    GameManager.State = GameState.Menu;
                    LevelClearUI.ToggleOn();
                }
            }
            else if (GameManager.Mode == GameMode.Recall)
            {
                if (InteractableLog.PathComplete)
                {
                    SeedConverter converter = new SeedConverter();
                    SeedString        = converter.DecodeSeed();
                    GameManager.State = GameState.End;
                    EndGameUI.ToggleOn();
                }
                else if (LevelManager.IsMultiLevelGame && ShowLevelComplete)
                {
                    GameManager.State = GameState.Menu;
                    LevelClearUI.ToggleOn();
                }
            }
        }