Merge branch 'Particles'

This commit is contained in:
Vincent Wheat
2021-11-05 13:25:57 -05:00
12 changed files with 15380 additions and 672 deletions

View File

@@ -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:

View File

@@ -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;
}