mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-23 19:04:32 -05:00
small changes to player and items for cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user