Esempio n. 1
0
        void Start()
        {
            int ArrayLength = 9;

            totalLoop          = ArrayLength - 1;
            objVideo           = new GameObject[ArrayLength];
            objVideoButton     = new GameObject[ArrayLength];
            VideoURL           = new string[ArrayLength];
            VideoPlayerControl = new VideoPlayer[ArrayLength];
            FindAllVideos();
            URLSetting();

            BackButton.SetActive(false);
            ButtonMoveDown.SetActive(false);
            ButtonMoveUp.SetActive(true);
            ShowLimitedVideos(IntContentMove);
        }
Esempio n. 2
0
        private void Controller(string Output, int OutputNumber)
        {
            if (Output == "Video")
            {
                HideAllVideos();
                objVideo[OutputNumber].SetActive(true);
                BackButton.SetActive(true);
                BackgroundPicture.SetActive(false);
                VideoPanelContent.SetActive(false);
            }

            if (Output == "BackMain")
            {
                HideAllVideos();
                ShowAllVideosButtons();
                BackButton.SetActive(false);
                VideoPanelContent.SetActive(true);
                BackgroundPicture.SetActive(true);
                ShowLimitedVideos(IntContentMove);
            }

            if (Output == "ContentMoveUp")
            {
                if (IntContentMove == 0)
                {
                    IntContentMove = 1;
                    ShowLimitedVideos(IntContentMove);
                    ContentVideos.anchoredPosition = new Vector2(0.0f, 220.0f);
                    ButtonMoveDown.SetActive(true);
                    ButtonMoveUp.SetActive(true);
                }
                else if (IntContentMove == 1)
                {
                    IntContentMove = 2;
                    ShowLimitedVideos(IntContentMove);
                    ContentVideos.anchoredPosition = new Vector2(0.0f, 430.0f);
                    OnPointerUp();                     // Put this at the end
                    ButtonMoveDown.SetActive(true);
                    ButtonMoveUp.SetActive(false);
                }
            }

            else if (Output == "ContentMoveDown")
            {
                if (IntContentMove == 1)
                {
                    IntContentMove = 0;
                    ShowLimitedVideos(IntContentMove);
                    ContentVideos.anchoredPosition = new Vector2(0.0f, 0.0f);
                    OnPointerUp();                     // Put this at the start
                    ButtonMoveDown.SetActive(false);
                    ButtonMoveUp.SetActive(true);
                }
                else if (IntContentMove == 2)
                {
                    IntContentMove = 1;
                    ShowLimitedVideos(IntContentMove);
                    ContentVideos.anchoredPosition = new Vector2(0.0f, 220.0f);
                    ButtonMoveDown.SetActive(true);
                    ButtonMoveUp.SetActive(true);
                }
            }

//			print ("IntContentMove: "+ IntContentMove);
        }