Im new to coding, and I got error Assets/Scripts/cannon shoot.js(10,64): BCE0043: Unexpected token: )., I know that means im not using ")" right, but I can't figure out whats wrong with my code. I checked to make sure each "(" had a corresponding ")", so whats wrong with my code? just so you know, the code is in Javascript, my game is 2D, and im using it to make a bubble fly up when i click.
Heres my code:
#pragma strict
function Start () {
}
function Update () {
if (Input.GetMouseButtonDown) transform.Translate (Vector2(0,1,));
}
↧