コード例 #1
0
 public static void PushBackKey(string title, string message)
 {
     if (Application.platform == RuntimePlatform.Android && (Input.GetKey(KeyCode.Home) || Input.GetKey(KeyCode.Escape) || Input.GetKey(KeyCode.Menu)) && !NpDeviceInfoAndroid.isPushBackKey)
     {
         NpDeviceInfo.Popup(title, message);
         NpDeviceInfoAndroid.isPushBackKey = true;
     }
 }
コード例 #2
0
        public static void Popup(string title, string message)
        {
            NpDeviceInfoAndroid.Popup(title, message);
            Thread thread = new Thread(delegate()
            {
                NpDeviceInfo.executeGetCancelKey();
            });

            thread.Start();
        }