'No overload for method' when attatching fmod event to animation event


(Matt Lightbound) #1

Im trying to apply an FMOD playoneshot script to a Unity animation event and I am getting this error message:

Assets/Sample Assets/2D/Scripts/Playersounds.cs(9,36): error CS1501: No overload for method PlayOneShot' takes1’ arguments

my code is

using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

	public void PlayerFootsteps ()			//this is a method called PlayerFootsteps. this is called when the program starts
	
	{
	FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps");
	}
}

(Nicholas Wilcox) #2
using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

    public void PlayerFootsteps () 
    {
        FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps", transform.position);
    }
}

(Matt Lightbound) #3

Thanks Nicholas (y)