using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { private Rigidbody2D rb2d; private float moveHorizontal; public void Restart(){ moveHorizontal = (float)0.2; } // Use this for initialization void Start () { rb2d = GetComponent (); moveHorizontal = (float)0.1; } // Update is called once per frame void Update () { float playerX = rb2d.transform.position.x..