Skip to content
Snippets Groups Projects
QuitApp.cs 926 B
Newer Older
  • Learn to ignore specific revisions
  • MaZiFAU's avatar
    MaZiFAU committed
    using UnityEngine.EventSystems;
    using static CommunicationEvents;
    
    //using static CheckServer;
    ///using static CommunicationEvents;
    using static StreamingAssetLoader;
    
    
    public class QuitApp : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
    {
    
        void Start()
        {
    
    MaZiFAU's avatar
    MaZiFAU committed
    
    
        }
    
        private void Update()
        {
    
        }
    
        public void OnPointerDown(PointerEventData data)
        {
    
        }
    
    
        public void OnPointerUp(PointerEventData data)
        {
            QuitApp1();
    
        }
    
        public void QuitApp1()
        {
    
            //Input.backButtonLeavesApp = true;
    
    MaZiFAU's avatar
    MaZiFAU committed
                if (!process_mmt_frameIT_server.HasExited)
                {
    
    MaZiFAU's avatar
    MaZiFAU committed
    
    
            UnityEditor.EditorApplication.isPlaying = false;
    
    #endif
    
    MaZiFAU's avatar
    MaZiFAU committed