using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player_movement : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float cj = Time.time + 1.5f;
float x = Input.GetAxis("Horizontal") * Time.deltaTime * 100.0f;
float z = Input.GetAxis("Vertical") * Time.deltaTime * 15.0f;
transform.Rotate(0, x, 0);
transform.Translate(0, 0, z);
if (Input.GetKeyDown("space")) {
for (int i = 0; i < 10; i++) {
transform.Translate(0, 5, 0);
}
}
}
}