From 63bfbfa7c62175a1434f2dcb20a4abebc3c61718 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 8 Nov 2021 13:06:34 +0900 Subject: [PATCH] =?UTF-8?q?Title=E3=82=A2=E3=83=8B=E3=83=A1=E3=83=BC?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E5=BE=85=E3=81=A1=E6=99=82=E9=96=93?= =?UTF-8?q?=E8=AA=BF=E6=95=B4/=20=E3=82=BF=E3=83=83=E3=83=97=E6=99=82SE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/Title/Scripts/Title.cs | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/Title/Scripts/Title.cs b/popcorn/Assets/MyGame/Scenes/Title/Scripts/Title.cs index db6939ba..4efee0e3 100644 --- a/popcorn/Assets/MyGame/Scenes/Title/Scripts/Title.cs +++ b/popcorn/Assets/MyGame/Scenes/Title/Scripts/Title.cs @@ -18,18 +18,25 @@ public class Title : MonoBehaviour // 実機でアプリ初回起動時にBGMならないの回避。1フレーム遅らせると鳴る Observable.NextFrame().Subscribe(_ => SoundManager.Instance.PlayBGM("bgm_Main")); startObject.SetActive(false); - this.CallWaitForFrame(50, () => + this.CallWaitForSeconds(1.1f, () => { startObject.SetActive(true); - this.UpdateAsObservable() - .Select(_ => Input.GetMouseButton(0)) - .DistinctUntilChanged() - .Skip(1) - .Take(1) - .Subscribe(_ => - { - TransitionManager.Instance.LoadScene(GameScenes.Main); - }).AddTo(this); + this.CallWaitForSeconds(1f, () => + { + this.UpdateAsObservable() + .Select(_ => Input.GetMouseButton(0)) + .DistinctUntilChanged() + .Skip(1) + .Take(1) + .Subscribe(_ => + { + SoundManager.Instance.PlaySE("se_ButtonTap"); + this.CallWaitForSeconds(.25f, () => + { + TransitionManager.Instance.LoadScene(GameScenes.Main); + }); + }).AddTo(this); + }); }); // お客さん