Last active
May 17, 2020 07:06
-
-
Save kyubuns/d00d3932784bda08d258e52cd50bbcbc to your computer and use it in GitHub Desktop.
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
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