﻿using UnityEngine;
using System.Collections;

public class Trampoline : MonoBehaviour {

	public float velocityX;
	public float velocityY;
	public Input button; 

	void OnTriggerStay2D(Collider2D other) {
		if (other.gameObject.tag == "Player") {
			if(button){
				other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY));
				//other.rigidbody2D.velocity+=new Vector2(velocityX,velocityY);
			}

		}
	}
}

﻿using UnityEngine;
using System.Collections;

public class Trampoline : MonoBehaviour {

	public float velocityX;
	public float velocityY;

	void OnTriggerStay2D(Collider2D other) {
		if (other.gameObject.tag == "Player") {
			other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY));
			//other.rigidbody2D.velocity+=new Vector2(velocityX,velocityY);
		}
	}
}

Revert "Tried to Figure Out Button: Failed"
Revert "Tried to Figure Out Button: Failed"

This reverts commit 22e4c8b1b383f6ef364cbf8209c1026530bc9414.
