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");
}
}
↧
Why do I receive the message "Parse error: unexpected symbol ´int' " in the "public int y;" line ?
↧