示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        // Preload the Masters if they are not loaded
        ds    = StartupScript.ds;
        music = new Music();

        ytPlayer.Play(music.Music1);
        ytPlayer.GetComponent <AudioSource>().volume = 0.25f;
    }
示例#2
0
 private void MatchPlayerToIntermissionAudio()
 {
     Player.GetComponent <AudioSource>().volume = IntermissionPlayer.GetComponent <AudioSource>().volume;
 }