Quantcast
Channel: Latest Questions by hardmode2236
Viewing all articles
Browse latest Browse all 112

ERROR: It is not possible to invoke an expression of type 'float'.

$
0
0
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.(); } 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'.

Viewing all articles
Browse latest Browse all 112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>