Cesium for Unity 1.23.0
Loading...
Searching...
No Matches
WaitForTask.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4namespace CesiumForUnity
5{
10 public class WaitForTask : CustomYieldInstruction
11 {
12 private IAsyncResult _task;
13
18 public WaitForTask(IAsyncResult task)
19 {
20 this._task = task;
21 }
22
23 public override bool keepWaiting => !this._task.IsCompleted;
24 }
25}
WaitForTask(IAsyncResult task)
Initializes a new instance.