public void AnalyseHit(object sender, OnHitEventArgs hitData) { DefenseLogic logic = hitData.defenseLogic; if (logic.activeStatus != DefenseLogic.Status.Idle) { if (logic.activeStatus == DefenseLogic.Status.Parrying) { gameObject.GetComponent <Animator> ().SetTrigger("Bounce"); } } }
public OnHitEventArgs(DefenseLogic targetDefenseLogic, GameObject newHitbox) { defenseLogic = targetDefenseLogic; hitbox = newHitbox; }