| 12345678910111213141516171819 |
- using UnityEditor;
- using UnityEngine;
- public class CloseGameButton : MonoBehaviour
- {
- // Start is called once before the first execution of Update after the MonoBehaviour is created
- void Start()
- {
- }
- private void OnTriggerEnter(Collider other)
- {
- Destroy(other.gameObject);
- //EditorApplication.ExitPlaymode();
- Application.Quit();
- }
- }
|