728x90
#if UNITY_EDITOR // 코드가 UNITY editor내에서 컴파일 되면 아래를 실행하라.
EditorApplication.ExitPlaymode();
#else
Application.Quit(); // Unity 플레이어를 종료하는 원본 코드
#endif
728x90
#if UNITY_EDITOR // 코드가 UNITY editor내에서 컴파일 되면 아래를 실행하라.
EditorApplication.ExitPlaymode();
#else
Application.Quit(); // Unity 플레이어를 종료하는 원본 코드
#endif