Need help combining code

Okay so basically I am making a script for Unity iPhone so whenever I touch the gameobject which is a soccer ball it bounces up. I have two scripts and I need to combine them. The first script makes it so whenever the ball is touched, particles come out. The second script is addforce.

Below are the two scripts

var particle : GameObject;
function Update () {
    for (var i = 0; i < Input.touchCount; ++i) {
        if (Input.GetTouch(i).phase == TouchPhase.Began) {
            // Construct a ray from the current touch coordinates
            var ray = Camera.main.ScreenPointToRay (Input.GetTouch(i).position);
            if (Physics.Raycast (ray)) {
                // Create a particle if hit
                Instantiate (particle, transform.position, transform.rotation);

The Second Script

function FixedUpdate () {
    rigidbody.AddForce (Vector3.up * 10);

How would I replace the create particle with the addforce?

I simplified it, but you’ll get my point :

function Update()
    if( input touch )

function OnTouch(){
    Instantiate particles;
    yield WaitForFixedUpdate();
    rigidbody.AddForce (Vector3.up * 10);