This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerator WaitForRealTime(float delay) | |
{ | |
float endTime = Time.realtimeSinceStartup + delay; | |
while (Time.realtimeSinceStartup < endTime) | |
yield return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Tests.Spinner | |
{ | |
public class Spinner : MonoBehaviour | |
{ | |
private class Part | |
{ | |
private Data _data; | |
private Transform _transform; |