select object , drag mouse to aim , release mouse to shoot ???

Hello everyone , I’m new to unity and c# and trying to learn.
I want to select an object and than drag mouse to aim and release mouse to shoot. just like soccer stars game but without arrow , teammate , opponent and Ball.

is there any tutorial for soccer stars game ???
I write a code for this and code not work.
my object is a sphere with mesh Collider and Rigidbody.
here is the code :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour {

	public  float shootPower = 10f;
	private Vector3 shootDirectionVector;

	void OnMouseDrag (){
		shootDirectionVector = Vector3.Normalize(Input.mousePosition - transform.position);
	}

	void OnMouseUp (){
		Vector3 outPower = shootDirectionVector * shootPower * -1;
		GetComponent<Rigidbody>().AddForce(outPower, ForceMode.Impulse);
	}
}

hope someone help me.

OK , I solved that problem , I change Rigidbody to Rigidbody2D and mesh Collider to circle Collider and change the code and everything is now fine!
here is my new code :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SwipeScript : MonoBehaviour {

	Vector2 startPos, endPos, direction;
	Rigidbody2D myRigidbody2D;
	public  float shootPower = 10f;

	void Start()
	{
		myRigidbody2D = GetComponent<Rigidbody2D> ();
	}

	void OnMouseDown (){
		if (Input.GetMouseButtonDown (0)) {
			startPos = Input.mousePosition;
		}
	}

	void OnMouseUp (){
		if (Input.GetMouseButtonUp (0)) {
			endPos = Input.mousePosition;
			direction = startPos - endPos;
			myRigidbody2D.isKinematic = false;
			myRigidbody2D.AddForce (direction * shootPower);
		}
	}
}

hope this help others !

how to “select object , drag touch to aim , release touch to shoot” using two touch on screen like Soccer Star Game?