Created
March 25, 2015 23:02
-
-
Save webmonch/c268a33ce7878eee19bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override int _add(VirtualItem item, int amount, bool notify){ | |
Debug.Log("To notify? " + notify); | |
int retBalance; | |
AndroidJNI.PushLocalFrame(100); | |
using(AndroidJavaClass jniStorageManager = new AndroidJavaClass("com.soomla.store.data.StorageManager")) { | |
using(AndroidJavaObject jniVCStorage = jniStorageManager.CallStatic<AndroidJavaObject>("getVirtualCurrencyStorage")) { | |
Debug.Log(">>>>>>>>before call"); | |
retBalance = jniVCStorage.Call<int>("add", item.ItemId, amount, notify); | |
Debug.Log(">>>>>>>>after call"); | |
} | |
} | |
AndroidJNI.PopLocalFrame(IntPtr.Zero); | |
Debug.Log(">>>>>>>>ADD END"); | |
return retBalance; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment