![alt text][1]
The Error is above this sentence
[1]: /storage/temp/92549-screen-shot-2017-04-21-at-25620-pm.png
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// add rigidbody 2d and circle collider 2d and change radis to 0.07
public class Player : MonoBehaviour
{
public int power = 500;
public int jumpHeight = 1000;
public bool isFalling = false;
// Use this for initialization
void Start (){
}
// Update is called once per frame
void Update ()
{
GetComponent().AddForce (Vector2.right * power);
}
};
↧