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