How to solve the error CS1026I
I have a problem creating a basic drive script please help me`using System.Collections;
using UnityEngine;
public class movimentacao : MonoBehaviour { public float velocidade;
// Use this for initialization
void Start () {
velocidade = 5.0f;
}
// Update is called once per frame
void Update() {
if (Input.GetButton("w")) (
transform.Translate(0, 0, velocidade * Time.deltaTime);
)
}
}`
Comment
Your answer
Follow this Question
Related Questions
GameObject doesn't move 1 Answer
Diagonal character movement 0 Answers
What is the difference between translate and position 1 Answer
Transform.up does not work after instantiating object 0 Answers
Car Controls without physics. 1 Answer