Make ServerRpc and ClientRpc obsolete.

This commit is contained in:
2024-12-06 18:26:41 +01:00
parent 76d8157fc7
commit 2e3ccb45b7

View File

@@ -57,7 +57,7 @@ namespace Unity.Netcode
/// <para>Marks a method as ServerRpc.</para>
/// <para>A ServerRpc marked method will be fired by a client but executed on the server.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method), Obsolete]
public class ServerRpcAttribute : RpcAttribute
{
public new bool RequireOwnership;
@@ -72,7 +72,7 @@ namespace Unity.Netcode
/// <para>Marks a method as ClientRpc.</para>
/// <para>A ClientRpc marked method will be fired by the server but executed on clients.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method), Obsolete]
public class ClientRpcAttribute : RpcAttribute
{
public ClientRpcAttribute() : base(SendTo.NotServer)