キッチン兄弟のレベルアップ演出時非表示対応

This commit is contained in:
kimura 2022-02-10 16:16:51 +09:00
parent b9040fc5c7
commit 10847c0731
2 changed files with 12 additions and 1 deletions

View File

@ -127,7 +127,12 @@ public class KitchenManager : MonoBehaviour
.DelaySubscription(TimeSpan.FromSeconds(.4f))
.Subscribe(_ =>
{
ShopLevelUp.ShowDialog(gameData.ViewedShopLevel + 1, CheckOrderAndSetPhoneTap);
kitchenView.SetActive(false);
ShopLevelUp.ShowDialog(gameData.ViewedShopLevel + 1, () =>
{
kitchenView.SetActive(true);
CheckOrderAndSetPhoneTap();
});
}).AddTo(this);
GameDataObserver.Instance.HeartObserver

View File

@ -115,4 +115,10 @@ public class KitchenView : MonoBehaviour
SetPinkMove();
blueBrotherAnimator.SetTrigger(Flame);
}
public void SetActive(bool active)
{
blueBrotherAnimator.transform.SetLocalScale(active ? 1f : 0f);
pinkBrotherAnimator.transform.SetLocalScale(active ? 1f : 0f);
}
}