This file contains hidden or 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 class TweenExtensions | |
{ | |
public static Task AsTask(this Tween tween, CancellationToken cancellationToken) | |
{ | |
var taskCompletionSource = new TaskCompletionSource<bool>(); | |
tween.OnComplete(() => { taskCompletionSource.TrySetResult(true); }); | |
tween.OnKill(() => { taskCompletionSource.TrySetCanceled(); }); | |
if (cancellationToken != CancellationToken.None) |
This file contains hidden or 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
mkdir /home/foo/doc/bar && cd $_ |
This file contains hidden or 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; | |
using System.Collections; | |
public class NetworkInterpolatedTransform : MonoBehaviour | |
{ | |
public double interpolationBackTime = 0.1; | |
internal struct State | |
{ | |
internal double timestamp; |