// A more customisable version of Rock. // Control the angle and duration. void Start() { JuiceBox.Rock(gameObject, 15, .4f); }
// A nice easy use of the Rock function. // Rocking objects will rotate endlessly back and forth (Z-axis only). void Start() { JuiceBox.Rock(gameObject); }
// A full version of Rock. // Control the angle, duration and easing of the rocking. void Start() { JuiceBox.Rock(gameObject, 20, .6f, iTween.EaseType.linear); }