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