迁移 Player/ProcedureGame/ShopUseCase 里的实体方法调用风格
- Player/ShopUseCase:调整了 Weapon 实体的打开方式 - ProcedureGame:调整初始化时的 Hud 和 Player 的初始化写法,流程更清楚
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user