void ShareCallBack(IShareResult result) { //check if is an error or success if (result.Cancelled) { Debug.Log("Share canceled"); } else if (!String.IsNullOrEmpty(result.Error)) { Debug.Log("Errors on share!"); } else if (!String.IsNullOrEmpty(result.RawResult)) { isShared = true; Text mission = FBScript.getInstance().DialogMission.GetComponent <Text> (); mission.text = "Share time: 1/1"; Debug.Log("Success on Share!" + isShared.ToString()); } }