Quick bug fixes

fixed pickup weapon
fixed drop weapon
changed switch weapon
This commit is contained in:
Noah4ever
2021-12-14 20:18:18 +01:00
parent 0fc8c6e08c
commit bdf043d299
4 changed files with 35 additions and 28 deletions

View File

@@ -133,13 +133,13 @@ public class ProcedualAnimationController : NetworkBehaviour
// Getting right camera shake curve
if(distance < nearDistance) {
cameraShakeCurve = nearCameraShakeCurve; // high camera shake
Debug.Log("NEAR EXPLOSION: " + distance);
//Debug.Log("NEAR EXPLOSION: " + distance);
} else if(distance < mediumDistance){
cameraShakeCurve = mediumCameraShakeCurve; // medium camera shake
Debug.Log("MEDIUM EXPLOSION: " + distance);
//Debug.Log("MEDIUM EXPLOSION: " + distance);
} else if(distance < farDistance) {
cameraShakeCurve = farCameraShakeCurve; // little camera shake
Debug.Log("FAR EXPLOSION: " + distance);
//Debug.Log("FAR EXPLOSION: " + distance);
} else { // If distance is even further than far then no camera shake
cameraShake = false;
}