totally stumped by this error… I know its gotta be something simple i just cant see it.\
#pragma strict
var sounds : AudioSource[];
var nextShot : float;
var shootSpeed : float;
function Start ()
{
sounds = gameObject.GetComponents.<AudioSource>();
}
function Update ()
{
nextShot+=Time.deltaTime(); //error here
if(nextShot>shootSpeed)
{
nextShot=0;
Debug.Log("PEW");
}
}
the error is: BCE0077: It is not possible to invoke an expression of type ‘float’.