Hi. I’m Doruk. I’m a new member of Unity, Unity Answers, Unity Community …
I’m having a parsing error with my code. Please! Can you “decode” it:
```
**using UnityEngine;
using System.Collections;
public class points : MonoBehaviour {
public int puanlar = 3;
public int schoollove = 0;
public int gamelove = 0;
public int hSliderValue ;
public int hSbarValue ;
public int bir = 1;
public bool a = false;
public int X = 208;
public int Y = 304;
public int x = 10;
public int y = 10;
public bool okul;
public bool oyun;
public int iks = 15;
public int ye = 15;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void OnGUI () {
if (a = false)
{
if (oyun = GUI.Button (new Rect (X, Y, Screen.width * 0.25f, Screen.height * 0.1f), ""));
{
gamelove += bir;
puanlar -= bir;
}
if (GUI.Button (new Rect (x,y,Screen.width*0.25f,Screen.height*0.1f), ""))
{
puanlar -= bir;
schoollove += bir;
}
}
if (puanlar == 0);
{
a = true;
}
}**
```
/
|
|
The parsing error.