unity - Program Quit 프로그램 종료



1
2
3
4
5
6
7
    #if UNITY_EDITOR
        UnityEditor.EditorApplication.isPlaying = false//editor play 모드 전환
    #elif UNITY_WEBPLAYER
        Application.OpenURL("http://google.com"); //url 웹으로 전환
    #else
        Application.Quit(); //어플리케이션 종료
    #endif
cs

댓글