Ejemplo n.º 1
0
    public void Cast(Vector3 direction)
    {
        if (canCast)
        {
            canCast = false;

            PerformAbility(direction, stats.DamageModifier());

            StartCoroutine(enableAttack());
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Try and attack
    /// </summary>
    /// <param name="direction"></param>
    public void Attack(Vector3 direction)
    {
        if (canAttack)
        {
            canAttack = false;

            PerformAttack(direction, stats.DamageModifier());

            StartCoroutine(enableAttack());
        }
    }