mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-22 02:14:30 -05:00
Debug Scripts have been cleaned up.
I won't apply this cleanup to the networked version yet because they will be updated to a state machine anyways.
This commit is contained in:
@@ -172,7 +172,7 @@ public class dGrapplingHook : NetworkBehaviour
|
||||
|
||||
//WILL NEED ADJUSTMENT OR REMOVAL IN THE FUTURE
|
||||
//ungrapple on jump
|
||||
if(playerMovement.GetJumpPressed() && !playerMovement.isGrounded && isGrappled){
|
||||
if(playerMovement.jumpHeld && !playerMovement.isGrounded && isGrappled){
|
||||
release = true;
|
||||
isGrappled = false;
|
||||
}
|
||||
|
||||
@@ -45,14 +45,12 @@ public class dWallRun : NetworkBehaviour
|
||||
return !isPlayergrounded() && verticalAxis > 0 && VerticalCheck();
|
||||
}
|
||||
|
||||
bool VerticalCheck()
|
||||
{
|
||||
bool VerticalCheck(){
|
||||
return !Physics.Raycast(transform.position, Vector3.down, minimumHeight);
|
||||
}
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
void Start(){
|
||||
playerMovementController = GetComponent<dPlayerMovement>();
|
||||
|
||||
directions = new Vector3[]{
|
||||
@@ -65,15 +63,14 @@ public class dWallRun : NetworkBehaviour
|
||||
}
|
||||
|
||||
|
||||
public void WallRunRoutine()
|
||||
{
|
||||
public void WallRunRoutine(){
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
|
||||
isWallRunning = false;
|
||||
|
||||
hits = new RaycastHit[directions.Length];
|
||||
|
||||
if(playerMovementController.GetJumpPressed())
|
||||
if(playerMovementController.jumpHeld)
|
||||
{
|
||||
jumping = true;
|
||||
}
|
||||
@@ -173,7 +170,7 @@ public class dWallRun : NetworkBehaviour
|
||||
moveToSet.y = 0;
|
||||
//
|
||||
|
||||
playerMovementController.SetPlayerVelocity(moveToSet);
|
||||
playerMovementController.vel = moveToSet;
|
||||
if(!isWallRunning){
|
||||
firstAttach = true;
|
||||
isWallRunning = true;
|
||||
|
||||
Reference in New Issue
Block a user