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

Why do I receive the message "Parse error: unexpected symbol ´int' " in the "public int y;" line ?

$
0
0
using UnityEngine; using System.Collections; public class GridItem : MonoBehaviour { public int x; { get; private set; } public int y; { get; private set; } public void OnItemPositionChanged (int nexX, int newY;) { x = newX; y = newY; gameObject.name = string.format ("Sprite [{0}][{1}]", x, y); } void OnMouseDown () { print ("Click sobre esse item"); } }

Viewing all articles
Browse latest Browse all 7934


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