Created
May 6, 2015 18:43
-
-
Save LordNed/eb6593ede9db3c816e70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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