Skip to content

Commit b139261

Browse files
committed
fix(payment): 添加 RequireComponent 确保 CroppingHelper 自动挂载
通过 RequireComponent 特性保证 PaymentComponent 挂载时 自动添加 GameFrameXPaymentCroppingHelper,防止遗漏。
1 parent 935ac9f commit b139261

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Runtime/PaymentComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace GameFrameX.Payment.Runtime
1515
/// 支付组件。
1616
/// </summary>
1717
[DisallowMultipleComponent]
18+
[RequireComponent(typeof(GameFrameXPaymentCroppingHelper))]
1819
[AddComponentMenu("GameFrameX/Payment")]
1920
[UnityEngine.Scripting.Preserve]
2021
public class PaymentComponent : GameFrameworkComponent

0 commit comments

Comments
 (0)