15 lines
		
	
	
		
			302 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			302 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnityEngine;
 | |
| 
 | |
| namespace NEG.UI.UnityUi.Buttons.Reactions
 | |
| {
 | |
|     public class ExitGame : ButtonReaction
 | |
|     {
 | |
|         protected override void OnClicked()
 | |
|         {
 | |
| #if UNITY_EDITOR
 | |
|             UnityEditor.EditorApplication.isPlaying = false;
 | |
| #endif
 | |
|             Application.Quit();
 | |
|         }
 | |
|     }
 | |
| } |