- Home /
Question by
nTu4Ka · Apr 28, 2016 at 06:30 PM ·
wwwcoroutines
Implementing WWW handling as separate class?
HI,
Is there a way to implement web request handling through a custom class? So that all WWW logic will be separated and you can just call methods through object instantiated from custom class.
The thing is - WWW needs implementing coroutines.
And StartCoroutine derives from MonoBehaviour.
And you cannot instantiate a MonoBehaviour class with new.
Comment
Your answer
Follow this Question
Related Questions
My game freezes whenever i use a function which involves http? 0 Answers
Returning from Coroutine stops the Update() method. 0 Answers
Coroutine and set (big?) Texture / Sprite gets noticable Lag 0 Answers
WaitForSeconds doesn't seem to work. 1 Answer
WWW download in background during position animation 2 Answers