79426355

Date: 2025-02-10 07:36:14
Score: 2
Natty:
Report link

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
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Good afternoon
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Марк