Exemplo n.º 1
0
        public virtual void Update()
        {
            timePassed += Time.deltaTime;
            if (timePassed >= walkingInterval)
            {
                //walkingSource.pitch = PRNG.GetFloatNumber(stepPitch - 0.1f, stepPitch + 0.1f);
                //walkingSource.Play();

                float pitch = PRNG.GetFloatNumber(stepPitch - 0.1f, stepPitch + 0.1f);
                sourceManager.PlaySound(AudioManager.GetFragment("footstep"), pitch);
                timePassed = 0f;
            }
        }