using UnityEngine;
using System.Collections;
public class Jump2 : MonoBehaviour {
public float jumpPower2;
// Use this for initialization
void Start()
{
Rigidbody2D rb = GetComponent<Rigidbody2D>();
}
void onTriggerStay(Collider2D other)
{
if (other.tag == "JumpZone")
if (Input.GetKey(KeyCode.UpArrow))
if (rb.position.y <= 0.2)
rb.AddForce(Vector2.up * jumpPower2);
}
}