iTween Camera Path called from a mouseUp (c#)

Hi
I’m new to C#

I’m trying to move my Camera along a certain Path using iTween when I click on a certain object

(eventually other objects will trigger other paths)

my MouseUp script is on the object I’ll click on:

using UnityEngine;
using System.Collections;

public class iTweenMouseUp : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void onMouseUp()
	{
		Path_1;
	}
}

My Camera move Path script is on the Camera:

I thought I should be triggering function “Path_1” with the mouseUp

using UnityEngine;
using System.Collections;

public class iTweenPathCamera : MonoBehaviour {

	void Start () {
	}

	void Update () {
	}

	void Path_1()
	{	
		iTween.MoveTo(gameObject, iTween.Hash ("path", iTweenPath.GetPath("New Path 1"), "time", 8, "easetype", iTween.EaseType.easeInOutSine));
	}

	
}

Probably semantics
Thanks
~ Be

You need to learn how to access other game objects:

http://docs.unity3d.com/412/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

http://unitygems.com/script-interaction1/

For your specific situation (assuming you are using the main camera and did not change the tag), you can change line 18 to:

Camera.main.GetComponent<iTweenPathCamera>().Path_1();