Esempio n. 1
0
    void Start()
    {
        Cursor.visible = false;

        datapass          = GameObject.FindGameObjectWithTag("persistent").GetComponent <SceneData>();
        datapass.fromGame = true;
        datapass.score    = 0;

        datapass.GetComponent <AudioSource>().Pause();
    }
Esempio n. 2
0
    void Start()
    {
        img       = this.GetComponent <Image>();
        img.color = Color.black;

        SceneData   datapass = GameObject.FindGameObjectWithTag("persistent").GetComponent <SceneData>();
        AudioSource Music    = datapass.GetComponent <AudioSource>();

        if (!Music.isPlaying)
        {
            Music.Play();
        }
    }