public void SaveGesture() { MhGesture gesture = gestureInput.GetCurrentgesture(); gesture.Name = inputField.text; MhGestureManager.AddGesture(gesture); MhGestureManager.SaveGestures(); LoadSymbols(); }
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(); }
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(); }