public void gold1000() { Debug.Log("Gold1000"); FaceBook.CallFBPay(product : "http://thepipercat.com/money05.html", callback : delegate(FBResult r) { if (r.Error != null) { Debug.Log("Result: " + r.Text); } else { if (!PayErrorCheck(r.Text)) { CMainData.Gold += 1000; } Debug.Log("Result: " + r.Text); //testLabel.text = r.Text; } }); }