Ejemplo n.º 1
0
 private void HideAllInstructions()
 {
     PanelIns1.SetActive(false);
     PanelIns2.SetActive(false);
     PanelIns3.SetActive(false);
     PanelIns4.SetActive(false);
     PanelIns5.SetActive(false);
     PanelIns6.SetActive(false);
 }
Ejemplo n.º 2
0
    private void SetUpMain()
    {
        HideAllInstructions();
        PanelIns6.SetActive(true);

        T1Narrative.SetActive(false);
        T2Narrative.SetActive(false);
        T3Narrative.SetActive(false);

        T1NarrativeDesk.SetActive(false);
        T2NarrativeDesk.SetActive(false);
        T3NarrativeDesk.SetActive(false);

        NarrativeHolder.SetActive(false);

        T1Room.SetActive(false);
        T2Room.SetActive(false);
        T3Room.SetActive(false);

        MainRoom.SetActive(true);

        MenuPlaying = true;
    }
Ejemplo n.º 3
0
    private void ShowCorrectContent()
    {
        FadeBack = false;

        if (menuVisible == true)
        {
            // First menu selection
            if (CurrentSelected == 1)
            {
                Menu1.SetActive(true);
                selectionRing1.SetActive(true);
                HideAllInstructions();

                if (ExperienceFinished == false)
                {
                    PanelIns6.SetActive(true);
                }
                else
                {
                    Menu1.SetActive(false);
                    selectionRing1.SetActive(false);
                    PanelIns6.SetActive(false);
                }

                if (MenuOption1 == 1)
                {
                    selectionRing1.transform.position = Menu1Positions[0].position;
                }

                if (MenuOption1 == 2)
                {
                    selectionRing1.transform.position = Menu1Positions[1].position;
                }

                if (MenuOption1 == 3)
                {
                    selectionRing1.transform.position = Menu1Positions[2].position;
                }
            }
            else
            {
                Menu1.SetActive(false);
                selectionRing1.SetActive(false);
            }

            // Second menu selection
            if (CurrentSelected == 2 && NarrativeVisible == false)
            {
                Menu2.SetActive(true);

                HideAllInstructions();
                PanelIns5.SetActive(true);

                // Show correct options
                // T1 Options
                if (MenuOption1 == 1)
                {
                    T1Options.SetActive(true);
                    T1SelectionRing.SetActive(true);

                    // Move cursor
                    if (MenuOption2 == 1)
                    {
                        T1SelectionRing.transform.position = T1MenuPositions[0].position;
                    }

                    if (MenuOption2 == 2)
                    {
                        T1SelectionRing.transform.position = T1MenuPositions[1].position;
                    }
                }
                else
                {
                    T1Options.SetActive(false);
                }

                // T2 Options
                if (MenuOption1 == 2)
                {
                    T2Options.SetActive(true);
                    T2SelectionRing.SetActive(true);

                    // Move cursor
                    if (MenuOption2 == 1)
                    {
                        T2SelectionRing.transform.position = T2MenuPositions[0].position;
                    }

                    if (MenuOption2 == 2)
                    {
                        T2SelectionRing.transform.position = T2MenuPositions[1].position;
                    }

                    if (MenuOption2 == 3)
                    {
                        T2SelectionRing.transform.position = T2MenuPositions[2].position;
                    }
                }
                else
                {
                    T2Options.SetActive(false);
                }

                // T3 Options
                if (MenuOption1 == 3)
                {
                    T3Options.SetActive(true);
                    T3SelectionRing.SetActive(true);

                    // Move cursor
                    if (MenuOption2 == 1)
                    {
                        T3SelectionRing.transform.position = T3MenuPositions[0].position;
                    }

                    if (MenuOption2 == 2)
                    {
                        T3SelectionRing.transform.position = T3MenuPositions[1].position;
                    }

                    if (MenuOption2 == 3)
                    {
                        T3SelectionRing.transform.position = T3MenuPositions[2].position;
                    }

                    if (MenuOption2 == 4)
                    {
                        T3SelectionRing.transform.position = T3MenuPositions[3].position;
                    }
                }
                else
                {
                    T3Options.SetActive(false);
                }
            }
            else
            {
                Menu2.SetActive(false);
                T1SelectionRing.SetActive(false);
                T2SelectionRing.SetActive(false);
                T3SelectionRing.SetActive(false);
            }

            // Third menu selection
            if (CurrentSelected > 2)
            {
                Menu3.SetActive(true);

                HideAllInstructions();
                PanelIns2.SetActive(true);

                FloatingContent.SetActive(true);

                // T1

                // T1 Images
                if (MenuOption1 == 1 && MenuOption2 == 1)
                {
                    T1ImageHolder.SetActive(true);
                    FloatingT1ImageHolder.SetActive(true);

                    for (int i = 0; i < T1Images.Length; i++)
                    {
                        if (i == CurrentT1Image - 1)
                        {
                            T1Images[i].SetActive(true);
                        }
                        else
                        {
                            T1Images[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T1ImageHolder.SetActive(false);
                    FloatingT1ImageHolder.SetActive(false);
                }

                // T1 Timeline
                if (MenuOption1 == 1 && MenuOption2 == 2)
                {
                    T1TimelineHolder.SetActive(true);
                    FloatingT1TimelineHolder.SetActive(true);
                }
                else
                {
                    T1TimelineHolder.SetActive(false);
                    FloatingT1TimelineHolder.SetActive(false);
                }

                // T2

                // T2 Images
                if (MenuOption1 == 2 && MenuOption2 == 1)
                {
                    T2ImageHolder.SetActive(true);
                    FloatingT2ImageHolder.SetActive(true);

                    for (int i = 0; i < T2Images.Length; i++)
                    {
                        if (i == CurrentT2Image - 1)
                        {
                            T2Images[i].SetActive(true);
                        }
                        else
                        {
                            T2Images[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T2ImageHolder.SetActive(false);
                    FloatingT2ImageHolder.SetActive(false);
                }

                // T2 Videos
                if (MenuOption1 == 2 && MenuOption2 == 2)
                {
                    T2VideoHolder.SetActive(true);
                    FloatingT2VideoHolder.SetActive(true);

                    HideAllInstructions();
                    PanelIns4.SetActive(true);

                    for (int i = 0; i < T2Videos.Length; i++)
                    {
                        if (i == CurrentT2Video - 1)
                        {
                            T2Videos[i].SetActive(true);
                        }
                        else
                        {
                            T2Videos[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T2VideoHolder.SetActive(false);
                    FloatingT2VideoHolder.SetActive(false);
                }

                // T2 Timeline
                if (MenuOption1 == 2 && MenuOption2 == 3)
                {
                    T2TimelineHolder.SetActive(true);
                    FloatingT2TimelineHolder.SetActive(true);
                }
                else
                {
                    T2TimelineHolder.SetActive(false);
                    FloatingT2TimelineHolder.SetActive(false);
                }

                // T3

                // T3 Images
                if (MenuOption1 == 3 && MenuOption2 == 1)
                {
                    T3ImageHolder.SetActive(true);
                    FloatingT3ImageHolder.SetActive(true);

                    for (int i = 0; i < T3Images.Length; i++)
                    {
                        if (i == CurrentT3Image - 1)
                        {
                            T3Images[i].SetActive(true);
                        }
                        else
                        {
                            T3Images[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T3ImageHolder.SetActive(false);
                    FloatingT3ImageHolder.SetActive(false);
                }

                // T3 Videos
                if (MenuOption1 == 3 && MenuOption2 == 2)
                {
                    T3VideoHolder.SetActive(true);
                    FloatingT3VideoHolder.SetActive(true);

                    HideAllInstructions();
                    PanelIns4.SetActive(true);

                    for (int i = 0; i < T3Videos.Length; i++)
                    {
                        if (i == CurrentT3Video - 1)
                        {
                            T3Videos[i].SetActive(true);
                        }
                        else
                        {
                            T3Videos[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T3VideoHolder.SetActive(false);
                    FloatingT3VideoHolder.SetActive(false);
                }

                // T3 Archive
                if (MenuOption1 == 3 && MenuOption2 == 3)
                {
                    T3ArchiveHolder.SetActive(true);
                    FloatingT3ArchiveHolder.SetActive(true);

                    for (int i = 0; i < T3Archive.Length; i++)
                    {
                        if (i == CurrentT3Archive - 1)
                        {
                            T3Archive[i].SetActive(true);
                        }
                        else
                        {
                            T3Archive[i].SetActive(false);
                        }
                    }
                }
                else
                {
                    T3ArchiveHolder.SetActive(false);
                    FloatingT3ArchiveHolder.SetActive(false);
                }

                // T3 Timeline
                if (MenuOption1 == 3 && MenuOption2 == 4)
                {
                    T3TimelineHolder.SetActive(true);
                    FloatingT3TimelineHolder.SetActive(true);
                }
                else
                {
                    T3TimelineHolder.SetActive(false);
                    FloatingT3TimelineHolder.SetActive(false);
                }
            }
            else
            {
                Menu3.SetActive(false);
                FloatingContent.SetActive(false);
            }
        }
    }