Hi, thanks for the tutorial.
One question about it.
How Should I check if the value exists?
I use this
var rawData = cc.sys.localStorage.getItem(JSON.stringify(“levels”));
if(rawData == null){
}
but under android is not getting the null, there I must use
if(rawData == “”)
Any unified way to do it?? It’s a mess having to change the code for each plattform.
Try
if(rawData == null || rawData == “”){
}
not ideal I know