jeudi 8 octobre 2015

Unity3D C# WWW class: execute code after every request

I couldn't find any clues for this online as I suppose a lot of people have abandoned Unity's WWW class for complex stuff. I'm using the WWW class to talk to my REST API, and I need to find a way to execute some code after every request. (I need to check the response code and execute some default behaviour if the response is 401)

Is there a simple way to achieve this?

(I'm using coroutines to send the requests)

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire