Possible Fixes To Net Bugs

This commit is contained in:
2022-02-02 12:46:48 -06:00
parent e009b33e54
commit cc3bd3d706
4 changed files with 10 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ public class GrapplingHook : NetworkBehaviour
// Update is called once per frame
void Update()
{
//if (!IsLocalPlayer) { return; }
if (!IsLocalPlayer) { return; }
if ((Input.GetKeyDown(KeyCode.E) || Input.GetKeyDown(KeyCode.JoystickButton2)) && pStats.HasGrapple) //If grapple button is hit
{
@@ -94,7 +94,7 @@ public class GrapplingHook : NetworkBehaviour
private void FixedUpdate()
{
//if (!IsLocalPlayer) { return; }
if (!IsLocalPlayer) { return; }
if (isGrappled)
{
Debug.DrawRay(gameObject.transform.position, (hookPoint.transform.position - gameObject.transform.position)); //Visual of line

View File

@@ -67,7 +67,7 @@ public class WallRun : NetworkBehaviour
public void WallRunRoutine()
{
//if (!IsLocalPlayer) { return; }
if (!IsLocalPlayer) { return; }
isWallRunning = false;