Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

I can't figure out the error for this.

$
0
0
So the error I got says, "Assets/CollectPaper.js(40,98): BCE0044: expecting "", found '/r'."

Here is the script that I used:


#pragma strict
@script RequireComponent ( AudioSource )
var papers : int = 0;
var papersToWin = 5;
var distanceToPaper : float = 2.5;
public var paperPickup : AudioClip;

function Start ()

{

Screen.lockCursor = true;

}

function Update ()
{
if(Input.GetMouseButtonDown (0) || Input.GetKeyDown (KeyCode.E))
{
var ray =...

I can't figure out the error for this.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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