コード例 #1
0
 void Walk()
 {
     _personStats.SetWalkingSpeed();
     running              = false;
     sneaking             = false;
     timeSinceStaminaUsed = Time.time;
     _stepSoundMaker.EnableWalkingSteps();
 }
コード例 #2
0
 void Start()
 {
     _stepSoundMaker = GetComponent <StepSoundMaker> ();
     _personStats    = GetComponent <PersonStats> ();
     _personStats.SetWalkingSpeed();
     _animator = GetComponent <Animator> ();
     staminaBar.SetActive(false);
 }