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