iTween.ShakePosition C# (CSharp) Method

ShakePosition() public static method

Randomly shakes a GameObject's position by a diminishing amount over time with FULL customization options.
public static ShakePosition ( GameObject target, Hashtable args ) : void
target GameObject
args Hashtable
return void
    public static void ShakePosition(GameObject target, Hashtable args)
    {
        //clean args:
        args = iTween.CleanArgs(args);

        //establish iTween
        args["type"]="shake";
        args["method"]="position";
        Launch(target,args);
    }

Same methods

iTween::ShakePosition ( GameObject target, Vector3 amount, float time ) : void
iTween