diff --git a/Runtime/Messaging/RpcAttributes.cs b/Runtime/Messaging/RpcAttributes.cs index acb6289..0af5693 100644 --- a/Runtime/Messaging/RpcAttributes.cs +++ b/Runtime/Messaging/RpcAttributes.cs @@ -57,7 +57,7 @@ namespace Unity.Netcode /// Marks a method as ServerRpc. /// A ServerRpc marked method will be fired by a client but executed on the server. /// - [AttributeUsage(AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Method), Obsolete] public class ServerRpcAttribute : RpcAttribute { public new bool RequireOwnership; @@ -72,7 +72,7 @@ namespace Unity.Netcode /// Marks a method as ClientRpc. /// A ClientRpc marked method will be fired by the server but executed on clients. /// - [AttributeUsage(AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Method), Obsolete] public class ClientRpcAttribute : RpcAttribute { public ClientRpcAttribute() : base(SendTo.NotServer)