using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
private Rigidbody m_Rigidbody;
// Use this for initialization
void Start () {
m_Rigidbody = gameObject.GetComponent<Rigidbody> ();
}
// Update is called once per frame
void Update () {
float horizontal_move=Input.GetAxis("Horizontal");
float vertical_move=Input.GetAxis("Vertical");
m_Rigidbody.AddForce (new Vector3 (horizontal_move, 0, vertical_move) * 8f);
}
}