using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Use this for initialization
void Start () {
hareket = transform;
hareket.position = new Vector3(0,0,0);
}
// Update is called once per frame
void Update () {
if (Input.GetKey(KeyCode.UpArrow))
this.transform.Translate(0,0,0.2);
if (Input.GetKey.(KeyCode.DownArrow))
this.transform.Translate(0,0,-0.2);
if (Input.GetKey(KeyCode.RightArrow))
this.transform.Translate(0.2,0,0)
if (Input.GetKey(KeyCode.LeftArrow))
this Transform.Translate(-0.2,0,0);
}
}
Whats wrong guys
İ Have a unexpected void (7.1) i dont know what am ı do