コード例 #1
0
    public void UpdatedSelectedSymbol()
    {
        string symbolName = dropDownList.options[dropDownList.value].text;

        MhGestureManager.RemoveGesture(symbolName);
        MhGesture gesture = gestureInput.GetCurrentgesture();

        gesture.Name = symbolName;
        MhGestureManager.AddGesture(gesture);
        MhGestureManager.SaveGestures();
    }
コード例 #2
0
    public void RemoveSelectedSymbol()
    {
        string symbolName = dropDownList.options[dropDownList.value].text;

        MhGestureManager.RemoveGesture(symbolName);
        dropDownList.ClearOptions();
        List <string> symbolsName = MhGestureManager.gestures.ConvertAll(x => x.name);

        dropDownList.AddOptions(symbolsName);
        MhGestureManager.SaveGestures();
    }