void Walk() { _personStats.SetWalkingSpeed(); running = false; sneaking = false; timeSinceStaminaUsed = Time.time; _stepSoundMaker.EnableWalkingSteps(); }
void Start() { _stepSoundMaker = GetComponent <StepSoundMaker> (); _personStats = GetComponent <PersonStats> (); _personStats.SetWalkingSpeed(); _animator = GetComponent <Animator> (); staminaBar.SetActive(false); }