private void SetClip() { idx++; BnfDataClip[] clipsData = this.clips; if (idx == 2) { clipsData = this.clips2; } else if (idx > 2) { clipsData = this.clips3; } Mibo.onGrammarState += OnGrammarState; if (mBnfData == null) { mBnfData = new Mibo.BnfData(mi_Name); } foreach (BnfDataClip clip in clips) { Debug.Log(">>>> BnfDataClip add value : " + String.Join(";", clip.values)); mBnfData.addSlot(clip.mi_Tag, clip.isRequired, clip.cmdKey, clip.values); } mBnfData.updateBody(); Mibo.createCrammer(mi_Name, mBnfData.body); Debug.Log("SetClip=="); }