Exemplo n.º 1
0
    private FootstepSoundEntry GetEntry(MaterialSound sound)
    {
        FootstepSoundEntry entry = sounds[(int)sound];

        if (entry.sound != sound)
        {
            Debug.LogError("Incorrect footstep entry!");
        }
        return(entry);
    }
Exemplo n.º 2
0
    public void PlayRightFoot(MaterialSound sound)
    {
        FootstepSoundEntry entry = GetEntry(sound);

        PlayRandomFromArray(entry.right, entry.volume);
    }