Hi,
im new to unity and scripting and i maded a script so that my flashlight goes down when i turn it off by pressing “f”.
But im getting an error… and i dont know what it is…
maybe its really simple but im new so yeah…
this is my script:
{
void Start
if(Input.GetButtonDown("FlashDown")){
Transform.Y == 0.5
Transform.Y = 1.0
else
Transform.Y = 1.0
}
PS: sorry for bad english…