Esempio n. 1
0
    public void RpcCountdown(bool l)
    {
        GUIManagerScript.SetEndGameScreen(false);
        if (l)
        {
            //playerParent.GetComponent<PlayerParentScript>().LockAndSpin();
            AudioManagerScript.instance.PrepareGameMusic();
            AudioManagerScript.instance.PlayCountdown();
            GUIManagerScript.SetRulesButton(false);
            GUIManagerScript.SetPregameParent(false);
        }
        else
        {
            //playerParent.GetComponent<PlayerParentScript>().Unlock();
            Debug.Log("Countdown stopped!");
            AudioManagerScript.instance.StopSFX();
            AudioManagerScript.instance.StartMenuMusic();
            GUIManagerScript.SetRulesButton(true);
            GUIManagerScript.SetPregameParent(true);

            if (networkedPScript == null)
            {
                SetNPS();
            }
        }
    }
Esempio n. 2
0
 public void RpcEndGame()
 {
     countDown        = 0;
     endgameCountDown = endGameLength;
     currentGameState = 210;
     GUIManagerScript.SetEndGameScreen(true);
 }
Esempio n. 3
0
 void RpcStartMainCountdown()
 {
     roundCount++;
     currentGameState = 200;
     countDown        = gameLength;
     GUIManagerScript.SetEndGameScreen(false);
 }
Esempio n. 4
0
    public void RpcReplayGame()
    {
        endgameCountDown = -1;
        currentGameState = 0;
        GUIManagerScript.SetEndGameScreen(false);

        AudioManagerScript.instance.StartMenuMusic();
    }
Esempio n. 5
0
    void Start()
    {
        countDown        = -1;
        endgameCountDown = -1;
        roundCount       = 0;
        GUIManagerScript.SetEndGameScreen(false);

        Random.InitState((int)System.Environment.TickCount);
    }
Esempio n. 6
0
    void Start()
    {
        countDown        = -1;
        endgameCountDown = -1;
        roundCount       = 0;
        GUIManagerScript.SetEndGameScreen(false);
        GUIManagerScript.SetSongSetButtonText(GetSongTypeText(songSet));

        Random.InitState((int)System.Environment.TickCount);
    }