tower-sell #12
4 changed files with 7 additions and 3 deletions
|
|
@ -137,7 +137,7 @@ namespace TD.Gameplay.Draft
|
|||
// ----- Owner → server RPCs ----------------------------------------
|
||||
|
||||
/// <summary>Owning client: pick one of the offered options by id.</summary>
|
||||
[Rpc(SendTo.Server, RequireOwnership = true)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
|
||||
public void RequestPickRpc(int optionId)
|
||||
{
|
||||
ServerResolve(optionId);
|
||||
|
|
@ -148,7 +148,7 @@ namespace TD.Gameplay.Draft
|
|||
/// afford it or already has an unresolved draft (resolve the current one first so a
|
||||
/// free pick is never silently overwritten).
|
||||
/// </summary>
|
||||
[Rpc(SendTo.Server, RequireOwnership = true)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
|
||||
public void RequestBuyRerollRpc()
|
||||
{
|
||||
if (HasActiveDraft) return; // resolve the pending draft before buying another
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
2
Assets/_Project/Scripts/VFX/CoinBurstVfx.cs.meta
Normal file
2
Assets/_Project/Scripts/VFX/CoinBurstVfx.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bdff685029f23004796671150c7cf39b
|
||||
2
Assets/_Project/Scripts/VFX/SellEffectSpawner.cs.meta
Normal file
2
Assets/_Project/Scripts/VFX/SellEffectSpawner.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e2708c6bac8136f45b48c899d3d40630
|
||||
Loading…
Add table
Add a link
Reference in a new issue