Hi, mi name is Mickey, and im a noob with java, so, i have a problem with this code
function Start ()
{
int Bullets;
Bullets = 8;
}
function Update ()
{
if(Input.GetMouseButtonDown(0))
{
if (Bullets > 0)
{
Debug.Log("Disparo");
animation.play ("Disparo");
Bullets = Bullets - 1;
}
else
{
Debug.Log("Sin Balas...Recargando");
animation.play("Recarga");
Bullets = 8;
}
}
}
if somebody can help me with this error, im going to be really grateful
↧