예제 #1
0
    public FootstepAudioPlayer CreateRobotFootstep(Vector3 position, AudioClip clip, float volume)
    {
        FootstepAudioPlayer robotFootstep = GetRobotFootstep();

        robotFootstep.transform.position = position;
        robotFootstep.Play(clip, volume);
        return(robotFootstep);
    }
예제 #2
0
    public FootstepAudioPlayer CreatePlayerFootstep(Vector3 position, AudioClip clip, float volume)
    {
        FootstepAudioPlayer playerFootstep = GetPlayerFootstep();

        playerFootstep.transform.position = position;
        playerFootstep.Play(clip, volume);
        return(playerFootstep);
    }