motion/joybox/actions/bezier.rb in joybox-1.0.0 vs motion/joybox/actions/bezier.rb in joybox-1.1.0
- old
+ new
@@ -9,23 +9,16 @@
bezier: [[0, 0], [0, 0], [0, 0]]
}
end
def self.by(options = {})
-
options = options.nil? ? defaults : defaults.merge!(options)
-
- CCBezierBy.actionWithDuration(options[:duration],
- bezier: options[:bezier])
+ CCBezierBy.actionWithDuration(options[:duration], bezier: options[:bezier])
end
-
def self.to(options = {})
-
options = options.nil? ? defaults : defaults.merge!(options)
-
- CCBezierTo.actionWithDuration(options[:duration],
- bezier: options[:bezier])
+ CCBezierTo.actionWithDuration(options[:duration], bezier: options[:bezier])
end
end
end
\ No newline at end of file