All pastes #2133462 Raw Edit

Something

public text v1 · immutable
#2133462 ·published 2012-03-29 01:14 UTC
rendered paste body
using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {

    public float PlayerSpeed;

    void Update ()
    {

    //move player left/right

     float amountToMoveLR = Input.GetAxis("Horizontal") * PlayerSpeed * Time.deltaTime;
     transform.Translate(Vector3.right * amountToMoveLR);
    }    
}