private IOSMessageSender() { if (GamebaseUnitySDKSettings.GetComponent <NativeMessageReceiver>() == null) { GamebaseUnitySDKSettings.AddComponent <NativeMessageReceiver>(); } }
private AOSMessageSender() { if (null == jc) { jc = new AndroidJavaClass(GAMEBASE_ANDROID_PLUGIN_CLASS); } if (null == GamebaseUnitySDKSettings.GetComponent <NativeMessageReceiver>()) { GamebaseUnitySDKSettings.AddComponent <NativeMessageReceiver>(); } }