really would like some help to make this right. i know its probably something easy I just keep running into a blank wall.
first script:
public class route1 : MonoBehaviour {
public bool r1;
void OnMouseDown()
{
if (r1 = true)
{
WR_R1 = true; // line im having troubles with
}
else if (r1 = false)
{
Debug.Log ("wrong play");
}
}
}
Second script:
public class WR_R1 : MonoBehaviour {
void Update(){
iTween.MoveTo(gameObject, iTween.Hash("path", iTweenPath.GetPath("WR_R1"), "time", 9.5));
}
}
Any help or a point into the right direction would be great and very helpful.
↧