public static void Log(string message) { #if !UNITY_EDITOR #if UNITY_IOS CocoCommonBinding.NSLog(message); #endif #endif Debug.LogError(message); }
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 }
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 }