Пример #1
0
        public static void Log(string message)
        {
#if !UNITY_EDITOR
        #if UNITY_IOS
            CocoCommonBinding.NSLog(message);
        #endif
#endif

            Debug.LogError(message);
        }
Пример #2
0
 public void ShowPromptMessage(string pMsg, float pDuration)
 {
                 #if UNITY_IPHONE
     CocoCommonBinding.ShowPromptMessage(pMsg, pDuration);
                 #elif UNITY_ANDROID
     EtceteraAndroid.showToast(pMsg, true);
                 #else
     Debug.Log("GamePluginManager->ShowPromptMessage: " + pMsg + ", " + pDuration);
                 #endif
 }
Пример #3
0
        public static void ShowPrompt(string message)
        {
#if !UNITY_EDITOR
        #if UNITY_IOS
            CocoCommonBinding.ShowPromptMessage(message, 2f);
        #elif UNITY_ANDROID
            EtceteraAndroid.showToast(message, true);
        #endif
#else
            Debug.LogErrorFormat("CocoNative->ShowPrompt: {0}", message);
#endif
        }