mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
3bb95aa528
commit
a34b974580
@ -9,26 +9,19 @@ class VirtualClientRpc : NetworkBehaviour
|
||||
public event Action<int> 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<int> onOverrideSendInt;
|
||||
|
||||
[ClientRpc]
|
||||
public override void RpcSendInt(int someInt)
|
||||
{
|
||||
public override void RpcSendInt(int someInt) =>
|
||||
onOverrideSendInt?.Invoke(someInt);
|
||||
}
|
||||
}
|
||||
|
||||
class VirtualOverrideClientRpcWithBase : VirtualClientRpc
|
||||
|
Loading…
Reference in New Issue
Block a user