private void OnGUI() { GUI.Label(new Rect(210, 10, 100, 80), text, statu); if (GUI.Button(new Rect(60, 10, 140, 40), "像素密度")) { int density = NativeBridge.sington.NGetDensity(); m_info.text = "PPI:" + density; } if (GUI.Button(new Rect(60, 70, 140, 40), "运营商")) { string str = NativeBridge.sington.NCheckSIM(); m_info.text = "运营商:" + str; } if (GUI.Button(new Rect(60, 130, 140, 40), "加载gif")) { StartCoroutine(GifHander()); } #if UNITY_ANDROID if (GUI.Button(new Rect(60, 190, 140, 40), "NDK")) { Debug.Log(Android.GetMemory()); NDKRead("test.txt"); } if (GUI.Button(new Rect(60, 250, 140, 40), "Streaming")) { string file = "test.txt"; int code = Android.CopyStreamingAsset(file); Debug.Log("code: " + code); string txt = Android.LoadSteamString(file); Debug.Log(txt); } if (GUI.Button(new Rect(60, 310, 140, 40), "UnZip")) { Android.UnZip("lua.zip"); } #endif GUIWebview(); }