Lightning Crackle & Scene Edits

-Adjusted Particle System
-Made Prefab in UI-UX usable
This commit is contained in:
Vincent Wheat
2021-11-01 14:05:36 -05:00
parent a47550e85b
commit e7a6196c59
4 changed files with 70 additions and 341 deletions

View File

@@ -104,7 +104,7 @@ public class PlayerMovement : NetworkBehaviour
// Don't do movement unless this is the local player controlling it
// Otherwise we let the server handle moving us
if (!IsLocalPlayer) { return; }
//if (!IsLocalPlayer) { return; }
// Don't lock the cursor multiple times if this isn't the local player
// Also don't want to lock the cursor for the king
@@ -117,7 +117,7 @@ public class PlayerMovement : NetworkBehaviour
{
// Don't do movement unless this is the local player controlling it
// Otherwise we let the server handle moving us
if (!IsLocalPlayer) { return; }
//if (!IsLocalPlayer) { return; }
//Controls for camera
@@ -153,10 +153,10 @@ public class PlayerMovement : NetworkBehaviour
//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){
// getHit(new Vector3(vel.x, 0, vel.z), 30);
// heldDown = true;
//}
if(!Input.GetMouseButton(1)){
@@ -164,7 +164,7 @@ public class PlayerMovement : NetworkBehaviour
}
//Checks if player should respawn
Respawn();
//Respawn();
}