Пример #1
0
    // A more customisable version of Rock.
    // Control the angle and duration.

    void Start()
    {
        JuiceBox.Rock(gameObject, 15, .4f);
    }
Пример #2
0
    // A nice easy use of the Rock function.
    // Rocking objects will rotate endlessly back and forth (Z-axis only).

    void Start()
    {
        JuiceBox.Rock(gameObject);
    }
Пример #3
0
    // A full version of Rock.
    // Control the angle, duration and easing of the rocking.

    void Start()
    {
        JuiceBox.Rock(gameObject, 20, .6f, iTween.EaseType.linear);
    }