Skip to content

Instantly share code, notes, and snippets.

@kyubuns
Last active May 17, 2020 07:06
Show Gist options
  • Save kyubuns/d00d3932784bda08d258e52cd50bbcbc to your computer and use it in GitHub Desktop.
Save kyubuns/d00d3932784bda08d258e52cd50bbcbc to your computer and use it in GitHub Desktop.
var hp = new AsyncReactiveProperty<int>(0);
await hp.ForEachAwaitAsync(async x =>
{
Debug.Log($"{Time.frameCount} {Time.time:0.00} DiaplyHP Start hp = {x}");
await UniTask.Delay(TimeSpan.FromSeconds(1));
Debug.Log($"{Time.frameCount} {Time.time:0.00} DiaplyHP Finish hp = {x}");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment