Beispiel #1
0
    IEnumerator SlowEnemyRoutine(float slowDuration)
    {
        BurningEffect burn = GetComponentInChildren <BurningEffect>();

        if (burn != null)
        {
            burn.DestroyBurn();
        }
        coldActive = true;
        chilled    = 0.5f;
        StartCoroutine(flashColor(Color.cyan, slowDuration));
        backupColdTimer = slowDuration;
        yield return(new WaitForSeconds(slowDuration));

        Debug.Log("ending slow");
        coldActive = false;
        chilled    = 1f;
    }