Skip to content

Instantly share code, notes, and snippets.

@kyubuns
Created February 10, 2018 14:04
Show Gist options
  • Save kyubuns/4283c5b27091c27d39de7975edc41f7b to your computer and use it in GitHub Desktop.
Save kyubuns/4283c5b27091c27d39de7975edc41f7b to your computer and use it in GitHub Desktop.
var x = Anime.Play(1.0f, 0.5f, Easing.EaseInOutSine(TimeSpan.FromSeconds(1f)))
.Play(1.0f, Easing.EaseOutElastic(TimeSpan.FromSeconds(0.8f)));
var y = Anime.Play(1.0f, 1.2f, Easing.EaseInOutSine(TimeSpan.FromSeconds(1f)))
.Play(1.0f, Easing.EaseOutElastic(TimeSpan.FromSeconds(0.8f)));
Observable.CombineLatest(x, y)
.Select(s => new Vector3(s[0], s[1], 1f))
.SubscribeToLocalScale(sphere);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment