リファクタ
This commit is contained in:
parent
8c409936c5
commit
391168cf20
|
|
@ -18,6 +18,12 @@ public class BulkOrderIndicatorView : MonoBehaviour
|
||||||
|
|
||||||
public IObservable<Unit> TappedPhone => button.OnClickAsObservable().TakeUntilDestroy(this);
|
public IObservable<Unit> TappedPhone => button.OnClickAsObservable().TakeUntilDestroy(this);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 電話を鳴らす場合 ReceiveをTrueにする
|
||||||
|
/// ボタンを非アクティブにする場合 AchievedをTrueにする
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="receive"></param>
|
||||||
|
/// <param name="achieved"></param>
|
||||||
public void SetIndicate(bool receive, bool achieved)
|
public void SetIndicate(bool receive, bool achieved)
|
||||||
{
|
{
|
||||||
if (receive)
|
if (receive)
|
||||||
|
|
@ -30,8 +36,8 @@ public class BulkOrderIndicatorView : MonoBehaviour
|
||||||
phoneAnimator.SetTrigger(Wait);
|
phoneAnimator.SetTrigger(Wait);
|
||||||
}
|
}
|
||||||
button.interactable = receive || !achieved;
|
button.interactable = receive || !achieved;
|
||||||
titleObject.SetActive(!receive && !achieved);
|
|
||||||
balloonObject.SetActive(receive);
|
balloonObject.SetActive(receive);
|
||||||
|
titleObject.SetActive(!receive && !achieved);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetBadgeActive(bool active)
|
public void SetBadgeActive(bool active)
|
||||||
|
|
|
||||||
|
|
@ -81,10 +81,10 @@ public class BulkOrderItemView : MonoBehaviour
|
||||||
|
|
||||||
public void SetButtonActive(bool active)
|
public void SetButtonActive(bool active)
|
||||||
{
|
{
|
||||||
cookedObject.SetActive(false);
|
|
||||||
perfectCookedObject.SetActive(false);
|
|
||||||
cookingButton.gameObject.SetActive(active);
|
cookingButton.gameObject.SetActive(active);
|
||||||
disabledObject.SetActive(!active);
|
disabledObject.SetActive(!active);
|
||||||
|
cookedObject.SetActive(false);
|
||||||
|
perfectCookedObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetCooked(ProductRarity rarity)
|
public void SetCooked(ProductRarity rarity)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue