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...
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...