Hi,
I have this code in a function call for onclick event:
figli = GameObject.Find (“nuovaAnimazioneArisguard 3”).GetComponentsInChildren ();
foreach (Transform child in figli) {
if (child.tag == “oggetti interattivi”) {
print (“ok c’è l’oggetto”);
ES2.Save (progressoDrop [j].transform, nomeFile + “?tag=dropList” + j);
inInventario [j] = true;
ES2.Save (inInventario [j], nomeFile + “?tag=dropOkList” + j);
j++;
}
}
It is doesn’t work, but if i put in update, it is works. I need put in onclick event. Where is my problem?