I'm new, and I'm blocked, as I fix it, it? is unity 5, and the error code is CS1513 expected

  • Thread starter Thread starter gabriel IMN
  • Start date Start date
G

gabriel IMN

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

public class PlayerControler : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
if (Input.GetKey("left"))
{
gameObject.transform.Translate(-0.1f * Time.deltaTime, 0, 0);
}

if (Input.GetKey("right"))
{
gameObject.transform.Translate(-0.1f * Time.deltaTime, 0, 0);
}
} <---- ERROR IS HERE C#

Continue reading...
 
Back
Top