using UnityEngine;
using System.Collections;

public class PlayerFourWayMovement : MonoBehaviour {

    private float vSpeed, hSpeed;

    // Use this for initialization
    void Start () {
    }

    // Update is called once per frame
    void Update () {
        hSpeed = Input.GetAxis (“Horizontal“);
        vSpeed = Input.GetAxis (“Vertical“);

        if (vSpeed != 0) {
            hSpeed = 0;
        }

        transform.Translate (hSpeed, 0, vSpeed);
    }
}