Beispiel #1
0
    ///  Switch statement functions
    #region         <-- TOP

    public void EnemyWalk()
    {
        navMesh.speed = eStats.moveSpeed;
        animator.SetBool("isWalking", true);
        animator.SetBool("isCrawling", false);

        if (audioSource != null)
        {
            //sfx.PlaySound(audioSource, Toolbox.GetInstance.GetSound().eStep, true);
            sfx.LoopSound(audioSource, Toolbox.GetInstance.GetSound().eStep, true, 0.4f, 6f, 0.75f, 1.25f);
        }
    }