chore(m2): 保存功能验收及后续清理前检查点
This commit is contained in:
@@ -228,12 +228,7 @@ public partial class FishingRodPanel : BasePanel
|
||||
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)
|
||||
{
|
||||
@@ -244,17 +239,6 @@ public partial class FishingRodPanel : BasePanel
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user