Good afternoon. Thank you for you explanation. I think i don't explain my question correctly. Try again. Put console alert in code:
_JSStorageGet: function (keyPtr, fallbackValue) {
// you first need to actually read them out!
var keyString = UTF8ToString(keyPtr);
// Deal with api and callback
//return fallbackValue;
console.log('_JSStorageGet complete');
return 42;
}
public static int GetInt(string key, int fallback = 0)
{
int retval;
retval = _JSStorageGet(key, fallbackValue);
Debug.Log(" GetInt: " + retval );
return retval;
}
if run GetInt I got:
GetInt: 0
_JSStorageGet complete
I'm expecting
_JSStorageGet complete
GetInt: 42