Skip to content
Snippets Groups Projects
QuitApp.cs 1.14 KiB
Newer Older
  • Learn to ignore specific revisions
  • using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.UI; //andr
    using UnityEngine.SceneManagement;
    using System.IO; //
    using UnityEngine.Video;//streaming
    using UnityEngine.Networking;
    //using static CheckServer;
    ///using static CommunicationEvents;
    using static StreamingAssetLoader;
    using static UIconfig;
    
    using static CommunicationEvents;
    
    using UnityEngine.EventSystems;
    
    
    public class QuitApp : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
    {
    
        void Start()
        {
            
        }
    
        private void Update()
        {
    
        }
    
        public void OnPointerDown(PointerEventData data)
        {
    
        }
    
    
        public void OnPointerUp(PointerEventData data)
        {
            QuitApp1();
    
        }
    
        public void QuitApp1()
        {
    
            //Input.backButtonLeavesApp = true;
    
            if (process_mmt_frameIT_server != null)
            {
                if (!process_mmt_frameIT_server.HasExited) {
                    process_mmt_frameIT_server.Kill();
                }
            }
            
    
            UnityEditor.EditorApplication.isPlaying = false;
    
    #endif