mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Updated Remote Actions doc
This commit is contained in:
parent
9592e559a7
commit
d2439643ad
@ -20,7 +20,7 @@ public class Player : NetworkBehaviour
|
||||
if (!isLocalPlayer) return;
|
||||
|
||||
if (Input.GetKey(KeyCode.X))
|
||||
CmdDropCube();
|
||||
CmdDropCube();
|
||||
}
|
||||
|
||||
// assigned in inspector
|
||||
@ -53,7 +53,6 @@ ClientRpc functions must have the prefix “Rpc”. This is a hint when reading
|
||||
``` cs
|
||||
public class Player : NetworkBehaviour
|
||||
{
|
||||
[SyncVar]
|
||||
int health;
|
||||
|
||||
public void TakeDamage(int amount)
|
||||
|
Loading…
Reference in New Issue
Block a user