using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading.Tasks; using UnityEngine; // This can be used as a way to return to the main unity thread when using multiple threads // with async methods public class WaitForUpdate : CustomYieldInstruction { public override bool keepWaiting { get { return false; } } }