Throw.UpdateRotation C# (CSharp) Method

UpdateRotation() public method

public UpdateRotation ( ) : void
return void
    void UpdateRotation()
    {
        if (Input.GetAxisRaw ("Horizontal") > 0)
            angle = 30;
        else if (Input.GetAxisRaw ("Horizontal") < 0)
            angle = 180 - 30;
        else if(Input.GetAxisRaw("Vertical") > 0)
            angle = 90;

        force = Quaternion.Euler (0, 0, angle) * standardForce;
    }