Ejemplo n.º 1
0
    void HandlePlayerCollision(Collider2D collision)
    {
        Player player = collision.GetComponent <Player>();

        effect.ApplyEffect(player, abilityData.stats, casterPlayerID);

        if (!isStatic && abilityData.description.name != "Tornado" && abilityData.description.name != "FireStorm" && abilityData.description.name != "Blast")
        {
            Debug.Log("Destroyng projectile " + this.gameObject.name + " that hit player " + player.GetID());
            projectileVisuals.Deactivate();
        }
    }