/* Hit & arrow interaction */ public void Hit( IArrow arrow, bool crit ) { float attack = arrow.GetAttack(); float critBonus = 0f; if (crit) { critBonus = attack * (thisShootingManager.GetCriticalMultiplier() - 1f); } thisHealth -= Mathf.FloorToInt(attack + critBonus); if (thisHealth <= 0f) { DestroyTarget(); } else { IndicateHealth( thisHealth, attack + critBonus ); IndicateHit( attack, critBonus ); } if (crit) { thisShootingManager.Flash(); } }