Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

unexpected void error

$
0
0
Hey Guys / @username, My void start() has an error saying unexpecting void 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); } }

Viewing all articles
Browse latest Browse all 2891

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>