2015년 5월 27일 수요일

Unity Device Check(디바이스 알아내기)

private void CheckDevice()
    {
        if (Application.platform == RuntimePlatform.Android)
        {
            //안드로이드
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            //아이폰
        }
        else if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            //PC 디버깅
        }

    }

댓글 없음:

댓글 쓰기