mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-24 03:14:39 -05:00
Merge branch 'Particles'
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD:Assets/Scripts/PlayerScripts/DebugPlayer.meta
|
||||
guid: 236528fef9e9ed54fa77a41f6facd741
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
=======
|
||||
guid: 8cc08287d1ef0b94db826a6319e8bd6d
|
||||
NativeFormatImporter:
|
||||
>>>>>>> Particles:Assets/Materials/LightningBolt.mat.meta
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
|
||||
@@ -101,7 +101,10 @@ public class PlayerMovement : NetworkBehaviour
|
||||
|
||||
// Don't do movement unless this is the local player controlling it
|
||||
// Otherwise we let the server handle moving us
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> Particles
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
|
||||
// Don't lock the cursor multiple times if this isn't the local player
|
||||
@@ -152,12 +155,16 @@ public class PlayerMovement : NetworkBehaviour
|
||||
//Debug.LogWarning("MoveController is either Disabled or wasn't retrieved correctly");
|
||||
}
|
||||
|
||||
//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;
|
||||
}
|
||||
//TESTING RAGDOLL STUFF NEEDS SOME WORK
|
||||
//Checks if player should respawn
|
||||
//Respawn();
|
||||
|
||||
//if (Input.GetMouseButton(1) && heldDown == false){
|
||||
// getHit(new Vector3(vel.x, 0, vel.z), 30);
|
||||
// heldDown = true;
|
||||
//}
|
||||
|
||||
|
||||
if(!Input.GetMouseButton(1)){
|
||||
heldDown = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user