Error CS1023

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class controles : MonoBehaviour
{
  
    [SerializeField]
    float speed = 5;

    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
      
        if (Input.GetAxis("Horizontal") != 0)

       


            Vector3 direction = new Vector3(0, 0, 0);
        direction.z = Input.GetAxis("Horizont");


        transform.Translate(direction * speed * Time.deltaTime);

    }
}

This is your 3rd post today asking for help without providing enough information for people to help.

Please take the time to read and put to use this guide on how to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

I would also recommend taking a course or watching a turkey on basic C# programming to understand the syntax of the language.

1 Like