From a7c863ee8fcd1c0bd570a9e7a5a64245b79a1a5c Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 25 Nov 2021 09:57:01 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=84=E5=BC=9F=E4=BC=9A=E8=A9=B1=E3=81=AE?= =?UTF-8?q?=E3=82=BB=E3=83=AA=E3=83=95=E9=80=81=E3=82=8A=E3=82=92=E3=83=9C?= =?UTF-8?q?=E3=82=BF=E3=83=B3=E3=82=92=E9=9B=A2=E3=81=97=E3=81=9F=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/marketing/Scripts/BrotherConversation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherConversation.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherConversation.cs index 6c2bc312..caba453f 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherConversation.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherConversation.cs @@ -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);