small changes to player and items for cleanup

This commit is contained in:
Melbyj1125
2021-11-17 12:21:15 -06:00
parent 2fe2fa5764
commit e2a1a9150c
20 changed files with 135 additions and 46 deletions

View File

@@ -78,7 +78,8 @@ public class dPlayerMovement : NetworkBehaviour
private Vector3 up;
private bool qDown;
//Kick Variables
//Blink
private dBlink blink;
void Awake()
{
@@ -93,6 +94,8 @@ public class dPlayerMovement : NetworkBehaviour
//Wallrun
wallRun = gameObject.GetComponent<dWallRun>();
blink = gameObject.GetComponent<dBlink>();
up = this.gameObject.GetComponentInParent<Transform>().up;
}
@@ -155,12 +158,16 @@ public class dPlayerMovement : NetworkBehaviour
//TEMP FOR TESTING RAGDOLL
//Right Click to ragdoll the player
if (Input.GetMouseButton(1) && heldDown == false){
getHit(new Vector3(vel.x, 0, vel.z), 30);
heldDown = true;
}
if(!Input.GetMouseButton(1)){
heldDown = false;
// if (Input.GetMouseButton(1) && heldDown == false){
// getHit(new Vector3(vel.x, 0, vel.z), 30);
// heldDown = true;
// }
// if(!Input.GetMouseButton(1)){
// heldDown = false;
// }
if(pStats.HasBlink == true){
blink.BlinkMove();
}
//TEMP FOR TESTING