キッチン兄弟のレベルアップ演出時非表示対応
This commit is contained in:
		
							parent
							
								
									b9040fc5c7
								
							
						
					
					
						commit
						10847c0731
					
				|  | @ -127,7 +127,12 @@ public class KitchenManager : MonoBehaviour | ||||||
|             .DelaySubscription(TimeSpan.FromSeconds(.4f)) |             .DelaySubscription(TimeSpan.FromSeconds(.4f)) | ||||||
|             .Subscribe(_ => |             .Subscribe(_ => | ||||||
|             { |             { | ||||||
|                 ShopLevelUp.ShowDialog(gameData.ViewedShopLevel + 1, CheckOrderAndSetPhoneTap); |                 kitchenView.SetActive(false); | ||||||
|  |                 ShopLevelUp.ShowDialog(gameData.ViewedShopLevel + 1, () => | ||||||
|  |                 { | ||||||
|  |                     kitchenView.SetActive(true); | ||||||
|  |                     CheckOrderAndSetPhoneTap(); | ||||||
|  |                 }); | ||||||
|             }).AddTo(this); |             }).AddTo(this); | ||||||
| 
 | 
 | ||||||
|         GameDataObserver.Instance.HeartObserver |         GameDataObserver.Instance.HeartObserver | ||||||
|  |  | ||||||
|  | @ -115,4 +115,10 @@ public class KitchenView : MonoBehaviour | ||||||
|         SetPinkMove(); |         SetPinkMove(); | ||||||
|         blueBrotherAnimator.SetTrigger(Flame); |         blueBrotherAnimator.SetTrigger(Flame); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     public void SetActive(bool active) | ||||||
|  |     { | ||||||
|  |         blueBrotherAnimator.transform.SetLocalScale(active ? 1f : 0f); | ||||||
|  |         pinkBrotherAnimator.transform.SetLocalScale(active ? 1f : 0f); | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue