ApplicationManager.cs 241 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. public class ApplicationManager : MonoBehaviour {
  4. public void Quit ()
  5. {
  6. #if UNITY_EDITOR
  7. UnityEditor.EditorApplication.isPlaying = false;
  8. #else
  9. Application.Quit();
  10. #endif
  11. }
  12. }