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