Exemple #1
0
    void Start()
    {
        menuMusicHandler = FindObjectOfType <SharedSoundHandler> ();
        if (!menuMusicHandler)
        {
            Debug.Log("MenuMusicHandler could not be found in scene.");
        }

        fadeGameHandler = FindObjectOfType <FadeGame> ();
        if (!fadeGameHandler)
        {
            Debug.Log("FadeGame could not be found in scene.");
        }

        GameInformation.SetPVP(false);
        GameInformation.SetPlayerName("unnamed");
    }