/// <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));
        }
예제 #2
0
    void Start()
    {
        speechManager = GameObject.FindWithTag("kinect-speech").GetComponent<SpeechManager>();
        intManager = GameObject.FindWithTag("kinect-interaction").GetComponent<InteractionManager>();

        pMenu = GetComponent<MenuPause>();
        hMenu = GetComponent<MenuHelp>();
    }
예제 #3
0
    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>();
    }