Titleアニメーション待ち時間調整/ タップ時SE追加

This commit is contained in:
kimura 2021-11-08 13:06:34 +09:00
parent df0de599f4
commit 63bfbfa7c6
1 changed files with 17 additions and 10 deletions

View File

@ -18,19 +18,26 @@ 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.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);
});
});
// お客さん
customerInterval.Select(f =>