From 35b024197a59476cf7f1451752712aeabc469a4e Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 7 Aug 2021 13:12:21 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Tests/Editor/CommandOverrideTest.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/CommandOverrideTest.cs b/Assets/Mirror/Tests/Editor/CommandOverrideTest.cs index da93e39a2..c9c57d54e 100644 --- a/Assets/Mirror/Tests/Editor/CommandOverrideTest.cs +++ b/Assets/Mirror/Tests/Editor/CommandOverrideTest.cs @@ -9,26 +9,19 @@ class VirtualCommand : NetworkBehaviour public event Action onVirtualSendInt; [Command] - public virtual void CmdSendInt(int someInt) - { + public virtual void CmdSendInt(int someInt) => onVirtualSendInt?.Invoke(someInt); - } } - class VirtualNoOverrideCommand : VirtualCommand - { - - } + class VirtualNoOverrideCommand : VirtualCommand {} class VirtualOverrideCommand : VirtualCommand { public event Action onOverrideSendInt; [Command] - public override void CmdSendInt(int someInt) - { + public override void CmdSendInt(int someInt) => onOverrideSendInt?.Invoke(someInt); - } } class VirtualOverrideCommandWithBase : VirtualCommand