private void clickButton(GameObject selectButton, Option op, int num) { if (audioSource.isPlaying){ audioSource.Stop(); } selectButton.transform.GetChild (0).GetComponent<Button> ().enabled = false; selectButton.transform.GetChild (1).GetComponent<Button> ().enabled = false; readJson.saveRecord(num); isWaiting = false; Debug.Log (op.getOption() + "|" + op.getSubfield()); readJson.toSubfield (op); needNext = false; }
/// <summary> /// select to subfield; /// get the new DialogInfo /// </summary> /// <param name="op">Op.</param> public void toSubfield(Option op) { this.curJsonFile = op.getSubfield(); this.curId = op.getTarId(); reloadJsonFile (); this.curDialogInfo = getDialogInfo (); }