using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TemporalPlayerControl : MonoBehaviour {

	private Rigidbody2D rg;
	[SerializeField] private float speed = .1f;

	void Start () {
		rg = GetComponent<Rigidbody2D> ();
	}
	
	void Update () {
		if(Input.GetKey(KeyCode.D)){
			rg.velocity = Vector2.right * speed;
		}else if(Input.GetKey(KeyCode.A)){
			rg.velocity = Vector2.left * speed;
		}

//		if(Input.GetKey(KeyCode.Space)){
//			rg.velocity = rg.velocity + new Vector2 (0,3);
//		}

	}
}
