mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-27 02:09:06 -07:00
Fixed an issue with calculating the normal on a box HitShape.
This commit is contained in:
@@ -9,16 +9,6 @@ namespace Netick.Samples.FPS
|
||||
public Transform SpawnPos;
|
||||
public GameObject PlayerPrefab;
|
||||
|
||||
// This is called to read inputs.
|
||||
public override void OnInput(NetworkSandbox sandbox)
|
||||
{
|
||||
var input = sandbox.GetInput<FPSInput>();
|
||||
|
||||
input.Movement = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));
|
||||
input.ShootInput |= Input.GetMouseButton(0);
|
||||
sandbox.SetInput<FPSInput>(input);
|
||||
}
|
||||
|
||||
// This is called on the server when a player has connected.
|
||||
public override void OnPlayerConnected(NetworkSandbox sandbox, NetworkPlayer networkPlayer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user