購入/強化時SEの2重再生対策

This commit is contained in:
kimura 2021-10-29 13:58:09 +09:00
parent d4f82c0dff
commit 391c4dba11
4 changed files with 15 additions and 2 deletions

View File

@ -948,7 +948,7 @@ MonoBehaviour:
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Transition: 0
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
@ -1750,7 +1750,7 @@ MonoBehaviour:
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Transition: 0
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}

View File

@ -69,6 +69,8 @@ public class CornFieldReinforcementDetailView : MonoBehaviour
.Take(1)
.Subscribe(_ => { }, () =>
{
purchaseButton.interactable = false;
releaseButton.interactable = false;
// 購入処理
callback?.Invoke();
transform.SetLocalScale(0);

View File

@ -133,6 +133,16 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 50
objectReference: {fileID: 0}
- target: {fileID: 9133304335268316946, guid: 3ea48dc60c16147799619e2fb9fe1cd9,
type: 3}
propertyPath: m_Transition
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9133304335268316946, guid: 3ea48dc60c16147799619e2fb9fe1cd9,
type: 3}
propertyPath: m_Interactable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9133304335334808081, guid: 3ea48dc60c16147799619e2fb9fe1cd9,
type: 3}
propertyPath: m_AnchoredPosition.x

View File

@ -55,6 +55,7 @@ public class ShopItemPurchaseView : MonoBehaviour
}).AddTo(this);
purchaseOnButton.OnClickAsObservable().Take(1).Subscribe(_ =>
{
purchaseOnButton.interactable = false;
LocalCacheManager.Load<Action<int>>(PurchaseCallbackTag, null)?.Invoke(currentCount.Value);
transform.SetLocalScale(0);
backgroundAnimator.SetTrigger(CloseTrigger);