//////////////////////////////////////////////////////////////////// // GameWall specific methods //////////////////////////////////////////////////////////////////// public static void load(int placementId) { // create an instrance of an SAAppWall (for callbacks) createInstance(); #if (UNITY_IPHONE && !UNITY_EDITOR) SAAppWall.SuperAwesomeUnitySAAppWallLoad(placementId, (int)configuration, isTestingEnabled); #elif (UNITY_ANDROID && !UNITY_EDITOR) var unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); var context = unityClass.GetStatic <AndroidJavaObject> ("currentActivity"); context.Call("runOnUiThread", new AndroidJavaRunnable(() => { var saplugin = new AndroidJavaClass("tv.superawesome.plugins.publisher.unity.SAUnityAppWall"); saplugin.CallStatic("SuperAwesomeUnitySAAppWallLoad", context, placementId, (int)configuration, isTestingEnabled); })); #else Debug.Log("SAAppWall Load"); #endif }