void CharacterAttack(GameObject other_, RaycastHit hit_) { ShootEffect(hit_, false); ICharacterPlayer icharp = hit_.collider.gameObject.GetComponent <ICharacterPlayer> (); if (icharp != null) { icharp.HasBeenKilled(0.1f); GameObject.Instantiate(_werewolfAttackEffect, hit_.point, Quaternion.identity); } }
void WolfAttack(RaycastHit hit_) { _health.Heal(_wereWolfKillHealAmount); ICharacterPlayer icharp = hit_.collider.gameObject.GetComponent <ICharacterPlayer> (); if (icharp != null) { icharp.HasBeenKilled(1.0f); GameObject.Instantiate(_werewolfAttackEffect, hit_.point, Quaternion.identity); } }