Ejemplo n.º 1
0
Archivo: Enemy.cs Proyecto: rbrt/pk
    IEnumerator WaitForAttackEffects(AttackEffect[] attackEffects)
    {
        SafeCoroutine[] coroutines = new SafeCoroutine[attackEffects.Length];
        for (int i = 0; i < attackEffects.Length; i++)
        {
            coroutines[i] = attackEffects[i].InvokeEffect(gameObject);
        }

        while (coroutines.Any(x => x.IsRunning))
        {
            yield return(null);
        }
    }
Ejemplo n.º 2
0
Archivo: Enemy.cs Proyecto: rbrt/pk
    IEnumerator WaitForAttackEffects(AttackEffect[] attackEffects)
    {
        SafeCoroutine[] coroutines = new SafeCoroutine[attackEffects.Length];
        for (int i = 0; i < attackEffects.Length; i++){
            coroutines[i] = attackEffects[i].InvokeEffect(gameObject);
        }

        while (coroutines.Any(x => x.IsRunning)){
            yield return null;
        }
    }