コード例 #1
0
    IEnumerator RunShowSideMenu()
    {
        SideMenu         sideMenu    = SideMenu.Instance;
        LargeCubeCluster cubeCluster = LargeCubeCluster.Instance;

        sideMenu.ShowBackground(true);  //Fades in background...

        //Wait sometime after background fades in...
        yield return(new WaitForSeconds(1.5f));

        sideMenu.ShowJoinConversation(true);
        CubeCluster.HidePlayerCubes = false; //Show player cubes, in cube cluster...
        sideMenu.ShowCameraView(true);       //Fades in cube cluster view...

        yield return(new WaitForSeconds(m_cubeWaitTime));

        cubeCluster.ShowCluster(true);    //Slides in cube cluster...

        yield return(new WaitForSeconds(1f));

        sideMenu.ShowTakePoll(true);

        yield return(new WaitForSeconds(3f));

        Player.ShowPointPoll = true;
        AppManager.State     = AppManager.AppState.CAN_TAKE_POLL;
        PanelManager.Instance.ClearAllPanels();
    }
コード例 #2
0
    IEnumerator StartPoll()
    {
        SideMenu         sideMenu      = SideMenu.Instance;
        LargeCubeCluster cubeCluster   = LargeCubeCluster.Instance;
        float            pollCountdown = StartupSettings.Instance.PollPrepareCountdown;

        float timer = pollCountdown;

        //Hide "Join Conversation text"...
        sideMenu.ShowJoinConversation(false);
        sideMenu.ShowTakePoll(false);
        CubeCluster.HidePlayerCubes = true;

        Player.ShowHashtag       = false;
        Player.ShowMoveIcon      = false;
        Player.ShowColor         = true;
        Player.ShowInactiveColor = false;

        //Explode cube...
        yield return(new WaitForSeconds(m_exploadWaitTime));

        Player.ShowTakePollText = true;
        cubeCluster.Explode();

        //Show "Let's Get Started" text...
        sideMenu.ShowGetStarted(true);

        //Show countdown cube...
        yield return(new WaitForSeconds(m_exploadRunTime));

        sideMenu.ShowCameraView(false); //Fading out cube cluster

        yield return(new WaitForSeconds(m_pollWaitTime));

        cubeCluster.DestroyCluster();
        cubeCluster.CreateCluster();

        Player.CountdownValue     = (int)pollCountdown;
        Player.ShowCountdownValue = true;
        StartCoroutine(Player.RunCountdown(null));

        yield return(new WaitForSeconds(pollCountdown + 1f));

        PollManager.Instance.StartNextPoll();
    }
コード例 #3
0
    IEnumerator RunHideSideMenu()
    {
        SideMenu         sideMenu    = SideMenu.Instance;
        LargeCubeCluster cubeCluster = LargeCubeCluster.Instance;

        sideMenu.ShowTakePoll(false);
        yield return(new WaitForSeconds(1f));

        cubeCluster.ShowCluster(false);
        yield return(new WaitForSeconds(m_cubeWaitTime));

        sideMenu.ShowCameraView(false);
        CubeCluster.HidePlayerCubes = true;
        sideMenu.ShowJoinConversation(false);
        sideMenu.ShowBackground(false);  //Fade out background...

        yield return(new WaitForSeconds(1f));

        PollManager.Instance.ResetTwitter();

        AppManager.State = AppManager.AppState.ATTRACT_CUBES;
    }