예제 #1
0
    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);
        }
    }
예제 #2
0
    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);
        }
    }