Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /// <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 ();
 }