Skip to content

Instantly share code, notes, and snippets.

View dotsquid's full-sized avatar
🇺🇦
I may be slow to respond.

dotsquid dotsquid

🇺🇦
I may be slow to respond.
View GitHub Profile
View WaitForRealTime.cs
public static IEnumerator WaitForRealTime(float delay)
{
float endTime = Time.realtimeSinceStartup + delay;
while (Time.realtimeSinceStartup < endTime)
yield return null;
}
@dotsquid
dotsquid / Spinner.cs
Last active September 11, 2018 22:12
So today my Windows 10 was updating for about 40 minutes (probably patch for Meltdown vulnerability) and this has taken a heavy toll. Put this Component on a GameObject which has a banch of children SpriteRenderers. Play with parameters. Have fun.
View Spinner.cs
using UnityEngine;
namespace Tests.Spinner
{
public class Spinner : MonoBehaviour
{
private class Part
{
private Data _data;
private Transform _transform;