兄弟会話のセリフ送りをボタンを離したときに変更
This commit is contained in:
parent
cf822e1657
commit
a7c863ee8f
|
|
@ -32,9 +32,9 @@ public class BrotherConversation : MonoBehaviour
|
||||||
var clickCountStream = this.UpdateAsObservable()
|
var clickCountStream = this.UpdateAsObservable()
|
||||||
.Select(_ => Input.GetMouseButton(0))
|
.Select(_ => Input.GetMouseButton(0))
|
||||||
.DistinctUntilChanged()
|
.DistinctUntilChanged()
|
||||||
.Skip(1)
|
.Pairwise()
|
||||||
.Where(b => b)
|
.Where(pair => pair.Previous && !pair.Current)
|
||||||
.ThrottleFirst(TimeSpan.FromSeconds(.25f))
|
.ThrottleFirst(TimeSpan.FromSeconds(.1f))
|
||||||
.Select(_ => 1)
|
.Select(_ => 1)
|
||||||
.Scan((i, i1) => i + i1);
|
.Scan((i, i1) => i + i1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue