mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
79fc5f528e
commit
35b024197a
@ -9,26 +9,19 @@ class VirtualCommand : NetworkBehaviour
|
||||
public event Action<int> 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<int> onOverrideSendInt;
|
||||
|
||||
[Command]
|
||||
public override void CmdSendInt(int someInt)
|
||||
{
|
||||
public override void CmdSendInt(int someInt) =>
|
||||
onOverrideSendInt?.Invoke(someInt);
|
||||
}
|
||||
}
|
||||
|
||||
class VirtualOverrideCommandWithBase : VirtualCommand
|
||||
|
Loading…
Reference in New Issue
Block a user