mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
added ServerCallback
This commit is contained in:
parent
f1d26e7b73
commit
c8d97b9063
@ -19,9 +19,10 @@ public override void OnStartServer()
|
||||
rigidbody3d.isKinematic = false;
|
||||
}
|
||||
|
||||
[ServerCallback]
|
||||
void Update()
|
||||
{
|
||||
if (isServer && Input.GetKeyDown(KeyCode.Space))
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
rigidbody3d.AddForce(Vector3.up * force);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user