Example #1
0
        /// <summary> Intialize Interactable Path and Log for MultiLevel Game </summary>
        static public void InitalizePathAndLogForMultiLevelGame()
        {
            InteractablePath.GeneratePathFromSeed(SeedString);
            InteractablePath.InitializeNextInteractable();

            Instance.isNextHighlighted = false;
            ShowLevelComplete          = false;
        }
Example #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;
                    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();
                    }
                }
            }
        }
Example #3
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();
                }
            }
        }