**using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.translate(1f* time.deltatime,0f, 0f)
}
}
It always tells me the same two errors -Assets/NewBehaviorscript.cs(14,9): error CS1525: Unexpected symbol ‘}’ and -Assets/Newbehaviourscript.cs(18,1) error CS8025: Parsing Error.
,
Check the capitalization of all class and method names.
Also, use the help the code editor / IDE provides. It should have told you what’s wrong in most cases.
using UnityEngine; using System.Collections;
public class NewBehaviourScript : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update() {
transform.Translate(1f * Time.deltaTime, 0f, 0f);
}
}
@doublemax could you please fix the seccond code because i tried it with your advice and its not woking for me -thx