Fix NGO RequireOwnership deprecation warnings; add VFX script metas
Replace deprecated [Rpc(..., RequireOwnership = true)] with InvokePermission = RpcInvokePermission.Owner on the owner-submitted draft/buff RPCs (PlayerDraft, PlayerBuffManager), matching the pattern already used elsewhere. Also commits the .meta files Unity generated for the new sell-VFX scripts so their GUIDs are stable across machines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
9be31b1645
commit
86bc916c49
4 changed files with 7 additions and 3 deletions
|
|
@ -146,7 +146,7 @@ namespace TD.Gameplay
|
|||
/// a random buff from the category at <paramref name="categoryIndex"/>.
|
||||
/// The server validates gold and adds the buff if the purchase succeeds.
|
||||
/// </summary>
|
||||
[Rpc(SendTo.Server, RequireOwnership = true)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
|
||||
public void RequestPurchaseBuffRpc(int categoryIndex)
|
||||
{
|
||||
if (categories == null || categoryIndex < 0 || categoryIndex >= categories.Length)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue