38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
--- Client/Assets/Scripts/UI/Rod/FishingRodPanel_Level.cs (reviewed baseline)
|
|
|
|
+++ Client/Assets/Scripts/UI/Rod/FishingRodPanel_Level.cs
|
|
|
|
@@ -228,7 +228,12 @@
|
|
|
|
fx_rodpanel_upgrade_change.SetActive(false);
|
|
}
|
|
|
|
+#if UNITY_EDITOR && !SERVICE_HOST
|
|
+ bool kvEquipInFlight;
|
|
+ async void OnClickEquip()
|
|
+#else
|
|
void OnClickEquip()
|
|
+#endif
|
|
{
|
|
if (data.config.ID == GContext.container.Resolve<PlayerData>().equipRodID || data.isLock)
|
|
{
|
|
@@ -239,6 +244,17 @@
|
|
|
|
ToastPanel.Show(LocalizationMgr.GetText("UI_ToastPanel_26"));
|
|
return;
|
|
}
|
|
+#if UNITY_EDITOR && !SERVICE_HOST
|
|
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled)
|
|
+ {
|
|
+ if(kvEquipInFlight) return;
|
|
+ kvEquipInFlight=true;
|
|
+ try { await GContext.container.Resolve<PlayerData>().SetEquipRodIDForKVLoopAsync(data.config.ID); }
|
|
+ catch(System.Exception e) { Debug.LogException(e); return; }
|
|
+ finally { kvEquipInFlight=false; }
|
|
+ }
|
|
+ else
|
|
+#endif
|
|
GContext.container.Resolve<PlayerData>().SetEquipRodID(data.config.ID);
|
|
btn_equip_go.gameObject.SetActive(false);
|
|
equipped.SetActive(true);
|