Make ServerRpc and ClientRpc obsolete.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user