Hello, I started with Unity a little while ago and I started watching theslayer29179’s videos, and everything worked fine. I am on the tenth tutorial now and my code doesnt work here is the tut: http://www.youtube.com/watch?v=BLoDobaY7bo. It says: Assets/K�dy/K�d pro st�elbu.js(47,1): BCE0044: expecting }, found ‘’.
here is the code:
#pragma strict
var Fireballshot : Transform;
var shotsound : AudioClip;
var rock : Transform;
//intergers
var wswitch = 1; // zmena + = koule zmena ě = kámen
function Start () {
}
//střelba
function Update ()
{
if (Input.GetKeyUp(“e”))
{
if (weaponnumber == 1)
{
var fireball = Instantiate (Fireballshot,gameObject.Find(“BULLET_SPAWN”).transform.position,Quaternion.identity);
fireball.rigidbody.AddForce(transform.forward * 900);
audio.PlayOneShot(shotsound);
}
if (weaponnumber == 2)
{
var rock = Instantiate (rock,gameObject.Find(“BULLET_SPAWN”).transform.position,Quaternion.identity);
rock.rigidbody.AddForce(transform.forward * 900);
//audio.PlayOneShot(shotsound);
}
//zmenazbrane
if (input.GetKeyup(“1”))
{
weaponnumber = 1;
}
if (input.GetKeyup(“2”))
{
weaponnumber = 2;
}
}
What I dont get is, why it says ; expecting }, found ‘’. Please help me, this is pretty important for me, thx :))