Skip to content

Instantly share code, notes, and snippets.

@LordNed
Created May 6, 2015 18:43
Show Gist options
  • Save LordNed/eb6593ede9db3c816e70 to your computer and use it in GitHub Desktop.
Save LordNed/eb6593ede9db3c816e70 to your computer and use it in GitHub Desktop.
// See if it's something that takes damage, if so we're going to kill the velocity and its ability to hurt.
IDamageable damageable = (IDamageable)col.gameObject.GetComponent(typeof(IDamageable));
if (damageable != null)
{
damageable.OnTakeDamage(Owner, m_arrowDamage);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment