Ejemplo n.º 1
0
    private void InputCastShieldCanceled()
    {
        if (isShieldCasting && !isProjectileCasting)
        {
            SpeedUpMovementSpeed();

            isShieldCasting = false;

            spellCast.StopCastingShield();
        }
    }
    private IEnumerator shieldCastCoroutine(GameObject shield)
    {
        yield return(new WaitForSeconds(Random.Range(reactionTimeMin, reactionTimeMax)));

        spellCast.CastElementShield(shield);

        yield return(new WaitForSeconds(Random.Range(1f, 2f)));

        isShieldCasting = false;
        spellCast.StopCastingShield();
    }