迁移 Player/ProcedureGame/ShopUseCase 里的实体方法调用风格

- Player/ShopUseCase:调整了 Weapon 实体的打开方式
- ProcedureGame:调整初始化时的 Hud 和 Player 的初始化写法,流程更清楚
This commit is contained in:
SepComet
2026-06-16 17:09:19 +08:00
committed by basil
parent a721670b36
commit 0bab6ecbc5
8 changed files with 107 additions and 118 deletions
@@ -448,6 +448,11 @@ namespace SepCore.UI
}
private void ShopPurchase(object sender, GameEventArgs e)
{
ShopPurchaseAsync(sender, e).Forget();
}
private async UniTaskVoid ShopPurchaseAsync(object sender, GameEventArgs e)
{
if (sender is not ShopForm)
{
@@ -459,7 +464,7 @@ namespace SepCore.UI
return;
}
ShopPurchaseResult result = _useCase.TryPurchase(args.GoodsIndex);
ShopPurchaseResult result = await _useCase.TryPurchaseAsync(args.GoodsIndex);
if (result == null)
{
return;