Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using UnityEngine;
- // Token: 0x020000DA RID: 218
- public class ExitButtonScript : MonoBehaviour
- {
- // Token: 0x060009CB RID: 2507
- public void ExitGame()
- {
- base.StopAllCoroutines();
- base.StartCoroutine(this.ExitTimer());
- }
- // Token: 0x06000DE5 RID: 3557
- private void Start()
- {
- this.player = base.gameObject.AddComponent<AudioSource>();
- }
- // Token: 0x06000DE7 RID: 3559
- private IEnumerator ExitTimer()
- {
- this.player.Stop();
- this.player.PlayOneShot(ModExtraAssets.Get<AudioClip>("BAL_ThanksForPlaying"));
- yield return new WaitWhile(() => this.player.isPlaying);
- Application.Quit();
- yield break;
- }
- // Token: 0x04000DAF RID: 3503
- private AudioSource player;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement