Beispiel #1
0
 public static Behavior GetUpdateDisplayObjectsPosBehavior(string moduleName, IReadOnlyList <string> elementNames, Vector2 originPos, Vector2 targetPos)
 {
     return(new Behavior(isReDo => DisplayObjectUtil.UpdateDisplayObjectsPosition(moduleName, elementNames, targetPos),
                         isReUndo => DisplayObjectUtil.UpdateDisplayObjectsPosition(moduleName, elementNames, originPos),
                         BehaviorType.UpdateDisplayObjectsPos));
 }