this is the part where i am getting error:
IEnumerator RunSound()
{
if(isRunning == true && IsStepping == false)
{
IsStepping = true;
StepNum = Random.range(1, 3);
if(StepNum == 1)
{
footStep1.Play();
}
else
{
footStep2.Play();
}
}
yield return new WaitForSeconds(0.3f);
IsStepping = false;
}
}
When i run the code in unity i get error:
error CS0104: ‘Random’ is an ambiguous reference between ‘UnityEngine.Random’ and ‘System.Random’