I am creating a Day-Z like game... In my game you have to find food and water to survive.. I am using this code for depletion... The problem is that I have depletion to 0.1 but for some reason it's going down way to fast.. In the inspector the minimum number allowing is 1.. How can I fix this?
Hunger and Thirst Depletion
Code (JavaScript):
- #pragma strict
- var lastPositionY : float = 0f;
- var fallDistance : float = 0f;
- var player : Transform;
- private var controller : CharacterController;
- var currentHealth : float = 100.0;...