void undoMove(ChangeWidthAction changeWidthAction) { if (changeWidthAction == null) { return; } nodes [changeWidthAction.IndexInList].Width = changeWidthAction.From; }
void makeMove(ChangeWidthAction changeWidthAction) { if (changeWidthAction == null) { return; } nodes [changeWidthAction.IndexInList].Width = changeWidthAction.To; }
void onFlagWidthChanged(Flag flag, float from, float to) { setNewCurrentFlag(flag); refreshLineRenderer(); StageAction stageAction = new ChangeWidthAction(flags.IndexOf(flag), from, to); stage.MakeAndAddAction(stageAction); refreshViews(); stage.RefreshGeometry(); }