private void Update() { if (DestinyEngineController.ExamplePlayer.IsPlayerWalking() | DestinyEngineController.ExamplePlayer.IsPlayerSprinting()) { WeaponAnimator.SetFloat("Moving", 1f); } else { WeaponAnimator.SetFloat("Moving", 0f); } }
private void Update() { if (DestinyEngineController.ExamplePlayer.IsPlayerWalking()) { WeaponAnimator.SetFloat("Moving", 1f); } else { WeaponAnimator.SetFloat("Moving", 0f); } if (DestinyEngineController.ExamplePlayer.IsPlayerSprinting()) { isSprinting = true; } else { isSprinting = false; } if (isSprinting) { WeaponAnimator.SetBool("isSprinting", true); } else { WeaponAnimator.SetBool("isSprinting", false); } if (Is_Cooldown) { internalCooldownTimer -= 1 * Time.deltaTime; if (internalCooldownTimer < 0) { Is_Cooldown = false; } } }