Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using System.Collections;
using SpicyPixel.Threading;
using SpicyPixel.Threading.Tasks;
public class AsyncSample : ConcurrentBehaviour {
void Update(){
void sample(){
foreach (var node in nodes) {
IEnumerator getImage(string urlText) {
WWW www = new WWW(urlText);
yield return www;
if (!string.IsNullOrEmpty(www.error)) {
Debug.LogError(string.Format("Fail!\n{0}", www.error));
yield break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.