兄弟会話のセリフ送りをボタンを離したときに変更

This commit is contained in:
kimura 2021-11-25 09:57:01 +09:00
parent cf822e1657
commit a7c863ee8f
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ public class BrotherConversation : MonoBehaviour
var clickCountStream = this.UpdateAsObservable()
.Select(_ => Input.GetMouseButton(0))
.DistinctUntilChanged()
.Skip(1)
.Where(b => b)
.ThrottleFirst(TimeSpan.FromSeconds(.25f))
.Pairwise()
.Where(pair => pair.Previous && !pair.Current)
.ThrottleFirst(TimeSpan.FromSeconds(.1f))
.Select(_ => 1)
.Scan((i, i1) => i + i1);