private void draw() { applyOverrides(); Mannequin mannequin = character.GetComponent <Mannequin>(); if (mannequin != null) { mannequin.ShowItemInHandsView(null); } Animator animator = character.animator; character.activeCombatItem = combatItem; if (combatItem.animationOverrides.equip == null) { animator.SetTrigger("ToCombatStance"); ExitAlertBehaviour.AlertExitState(animator, "Grounded", this); } else { ExitAlertBehaviour.AlertExitState(animator, "DrawWeapon", this); animator.SetTrigger("DrawWeapon"); } }
protected override void OnCharacterActionStart(Character character) { Animator animator = character.animator; ExitAlertBehaviour.AlertExitState(animator, "Hurt", this); animator.SetTrigger("Hurt"); }
protected override void OnCharacterActionStart(Character actor) { animator = actor.animator; ExitAlertBehaviour.AlertExitState(animator, "Attack", this); animator.SetTrigger("Attack"); timer = 0.0f; }