パンゲームリザルトのリワード追加
This commit is contained in:
parent
c1b6fee230
commit
79f0c387a2
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using MyGame.Scripts;
|
||||
using TMPro;
|
||||
using UniRx;
|
||||
using UnityEngine;
|
||||
|
|
@ -91,10 +92,13 @@ public class CookingResult : MonoBehaviour
|
|||
}).AddTo(this);
|
||||
}
|
||||
|
||||
perfectButton.OnClickAsObservable().Subscribe(_ =>
|
||||
perfectButton.OnClickAsObservable().ThrottleFirst(TimeSpan.FromSeconds(.3f)).Subscribe(_ =>
|
||||
{
|
||||
// 広告視聴後、結果上書き
|
||||
result.Value = CornResult.Perfect;
|
||||
GetRewardDialog.ShowPerfectPopcornDialog(() =>
|
||||
{
|
||||
result.Value = CornResult.Perfect;
|
||||
});
|
||||
}).AddTo(this);
|
||||
destructionButton.OnClickAsObservable().Subscribe(_ =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue