public IEnumerator LostVit() { while (true) { float curSpeed = fpc.RunSpeed; yield return(new WaitForSeconds(1)); if (fpc.PlayerState == PlayerState.RUN) { if (this.vit >= 4) { this.vit -= 4; } else { this.vit = 0; if (curSpeed != walkSpeed) { ResetSpeed(); } } playerInfoPanel.UpdateVit(this.vit / totalVit); } } }