someone help me!
thats the score script
public int myCurScore;
public TextMesh score;
private bool clicked;
void Start () {
clicked = false;
myCurScore = 1;
spa = FindObjectOfType (typeof(SpawObject)) as SpawObject;
}
// Update is called once per frame
void Update () {
}
void OnMouseDown(){
clicked = !clicked;
if ( clicked == true){
Debug.Log(myCurScore);
score.text = "" + myCurScore.ToString ();
myCurScore += 1;
}
}
}