キッチンアニメーションに確認用処理を入れた
This commit is contained in:
parent
4712b86d67
commit
1f7f6f437c
|
|
@ -25,6 +25,23 @@ public class KitchenManager : MonoBehaviour
|
||||||
HeartMeter.Instance.Initialize();
|
HeartMeter.Instance.Initialize();
|
||||||
HeartMeter.Instance.SetHeart(gameData.Heart);
|
HeartMeter.Instance.SetHeart(gameData.Heart);
|
||||||
|
|
||||||
|
kitchenView.Initialize();
|
||||||
|
adButton.gameObject.SetActive(false);
|
||||||
|
kitchenView.SetNormalAnimation();
|
||||||
|
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||||
|
Observable.Timer(TimeSpan.FromSeconds(3f)).Subscribe(_ =>
|
||||||
|
{
|
||||||
|
adButton.gameObject.SetActive(true);
|
||||||
|
kitchenView.SetTiredAnimation();
|
||||||
|
}).AddTo(this);
|
||||||
|
adButton.OnClickAsObservable().Subscribe(_ =>
|
||||||
|
{
|
||||||
|
// 動画視聴POP
|
||||||
|
adButton.gameObject.SetActive(false);
|
||||||
|
kitchenView.SetNormalAnimation();
|
||||||
|
}).AddTo(this);
|
||||||
|
#endif
|
||||||
|
|
||||||
SetData();
|
SetData();
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,6 @@ public class KitchenView : MonoBehaviour
|
||||||
private bool isTired;
|
private bool isTired;
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
moveIndex = 0;
|
|
||||||
SetPinkMove();
|
|
||||||
this.UpdateAsObservable().Subscribe(_ =>
|
this.UpdateAsObservable().Subscribe(_ =>
|
||||||
{
|
{
|
||||||
if (isTired)
|
if (isTired)
|
||||||
|
|
@ -64,6 +62,11 @@ public class KitchenView : MonoBehaviour
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Initialize()
|
||||||
|
{
|
||||||
|
moveIndex = 0;
|
||||||
|
}
|
||||||
|
|
||||||
private void SetPinkMove()
|
private void SetPinkMove()
|
||||||
{
|
{
|
||||||
var move = pinkMoves[moveIndex];
|
var move = pinkMoves[moveIndex];
|
||||||
|
|
@ -86,6 +89,7 @@ public class KitchenView : MonoBehaviour
|
||||||
public void SetNormalAnimation()
|
public void SetNormalAnimation()
|
||||||
{
|
{
|
||||||
isTired = false;
|
isTired = false;
|
||||||
|
SetPinkMove();
|
||||||
blueBrotherAnimator.SetTrigger(Normal);
|
blueBrotherAnimator.SetTrigger(Normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue