IEnumerator HearSomething(Vector3 where) { SuprisedBy(where); emotion.Show("Think"); yield return(new WaitForSeconds(reactionTime)); emotion.Hide(); if (state == HumanState.Thinking) { ChangeState(HumanState.Walking); } }
public void Die() { throwAccumulatedForce = 0f; ResetThrowPreview(); DropHeldObject(); emotion.Show("Dizzy"); isParalyzed = true; dead = true; anim.SetFloat("Speed", 0f); SoundPlayer.StopEverySound(); SoundPlayer.Play("mus_caught", 0.5f); }