/// <summary> /// 创建自定义菜单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnCreateMenu_Click(object sender, EventArgs e) { var createMenJsonStr = tbCreateMenuJson.Text; if (string.IsNullOrWhiteSpace(createMenJsonStr)) { return; } CommonUtility.Logger.Info("创建自定义菜单Json:" + createMenJsonStr); MenuHelp.CreateMenu(JsonUtility.FromJsonTo <object>(createMenJsonStr)); }
void Start() { speechManager = GameObject.FindWithTag("kinect-speech").GetComponent<SpeechManager>(); intManager = GameObject.FindWithTag("kinect-interaction").GetComponent<InteractionManager>(); pMenu = GetComponent<MenuPause>(); hMenu = GetComponent<MenuHelp>(); }
void Start() { speechManager = GameObject.FindWithTag("kinect-speech").GetComponent<SpeechManager>(); worldIndex = GameObject.Find("levelProperties").GetComponent<LevelProperties>().worldIndex; intManager = GameObject.FindWithTag("kinect-interaction").GetComponent<InteractionManager>(); pMenu = GetComponent<MenuPause>(); opMenu = GetComponent<MenuOptions>(); hMenu = GetComponent<MenuHelp>(); }