I am trying to fetch some data from an API. I am using WWW class of the unity. How can I wait www class to finish without coroutine? I need to do without Coroutine because my dataManager class is not extending mono behaviour, and It is not attached to a game object, so I can not use coroutine. Any other methods that I can use ?
Asked
Active
Viewed 365 times
0
-
1You must use the `WWW` API in a coroutine function. Wiating also requires coroutine. The duplicate shows you how to use coroutine in non `MonoBehaviour` class. – Programmer Dec 23 '17 at 13:02
-
Yeah, thank you it helped me a lot :) And sorry for now researching properly.. I can not find this question before – William Brown Dec 24 '17 at 18:10
-
No problem at-all – Programmer Dec 24 '17 at 18:14