From a34b9745808d4fe5209658cae5f0a20462933753 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 7 Aug 2021 12:55:49 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Tests/Editor/ClientRpcOverrideTest.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/ClientRpcOverrideTest.cs b/Assets/Mirror/Tests/Editor/ClientRpcOverrideTest.cs index f9104a520..613b006c9 100644 --- a/Assets/Mirror/Tests/Editor/ClientRpcOverrideTest.cs +++ b/Assets/Mirror/Tests/Editor/ClientRpcOverrideTest.cs @@ -9,26 +9,19 @@ class VirtualClientRpc : NetworkBehaviour public event Action onVirtualSendInt; [ClientRpc] - public virtual void RpcSendInt(int someInt) - { + public virtual void RpcSendInt(int someInt) => onVirtualSendInt?.Invoke(someInt); - } } - class VirtualNoOverrideClientRpc : VirtualClientRpc - { - - } + class VirtualNoOverrideClientRpc : VirtualClientRpc {} class VirtualOverrideClientRpc : VirtualClientRpc { public event Action onOverrideSendInt; [ClientRpc] - public override void RpcSendInt(int someInt) - { + public override void RpcSendInt(int someInt) => onOverrideSendInt?.Invoke(someInt); - } } class VirtualOverrideClientRpcWithBase : VirtualClientRpc