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();
            }
        }
    }
 public void RpcEndGame()
 {
     countDown        = 0;
     endgameCountDown = endGameLength;
     currentGameState = 210;
     GUIManagerScript.SetEndGameScreen(true);
 }
 void RpcStartMainCountdown()
 {
     roundCount++;
     currentGameState = 200;
     countDown        = gameLength;
     GUIManagerScript.SetEndGameScreen(false);
 }
    public void RpcReplayGame()
    {
        endgameCountDown = -1;
        currentGameState = 0;
        GUIManagerScript.SetEndGameScreen(false);

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

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

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