﻿using UnityEngine;
using System.Collections;

public class PlayerSpriteMove : MonoBehaviour {


	PlayerMoveScript playerobj;
	public float speed = 50f;
	public float xjump = 0.0f;
	public float yjump = 0.0f;
	public float fall = 1.0f;
	private Vector3 movement;
	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		//playerobj = gameObject.GetComponentInParent<PlayerMoveScript> ();

		if (Input.GetKeyDown (KeyCode.Space)) {
			//yjump += 2.0f;
			transform.localPosition = new Vector2(0, speed * Time.deltaTime);

		}
		else
		{
			transform.localPosition = new Vector2(0,0);
		}

		//transform.localPosition = new Vector2 (0, (transform.localPosition.y + (yjump * speed)) * Time.deltaTime);
		//movement = new Vector3(speed * xjump, speed * yjump * fall, 0);
		//movement *= Time.deltaTime;
		//transform.Translate(movement);


	}
}
