Esempio n. 1
0
    void Start()
    {
        ratingInput = "";
        genreInput  = "";
        yearInput   = "";

        adsdelaytime = saveload.adsDelayTime;
        videoDelay   = false;
        MainMenuButton.SetActive(true);
        BackButton.SetActive(false);
        Updatepannel.SetActive(false);
        ReportPannel.SetActive(false);
        SharePannel.SetActive(false);
        Feedbackpannel.SetActive(false);
        OnDashbordBackButtonPressed();

        inappropriateData         = "0";
        downloadingLinkNotWorking = "0";
        others = "0";

        ActivatePanel(SearchPage.name);

        if (saveload.dubbedMovies)
        {
            print("DubbedMovies");
            GetDubbedMovies();
            MovieText.color       = Color.white;
            DubbedMovieText.color = Color.green;
            MiniGameText.color    = Color.white;
        }
        else
        {
            MovieText.color       = Color.green;
            DubbedMovieText.color = Color.white;
            MiniGameText.color    = Color.white;
            GetDataa();
        }
        StartCoroutine(DelayAndAnalyse());
        StartCoroutine(WaitAndCloseResultText("Loading...", 3));
        ShowAds(adsdelaytime);

        if (saveload.isFirstTime == false)
        {
            saveload.isFirstTime = true;
            saveload.Save();
            OnDashBordButtonPressed();
        }

        if (saveload.isGamePannelOn > 0)
        {
            OnMiniGamesButtonPressed();
            saveload.isGamePannelOn = 0;
            saveload.Save();
        }
        else
        {
            MiniGamePannel.SetActive(false);
        }
    }
Esempio n. 2
0
 public void OnShowDownloadNewVersionButtonPressed()
 {
     Updatepannel.SetActive(true);
 }