//Checks whether the mouse location is in some collision box private bool checkPosition(PuppetStringCollider obj) { //collision box logic for mouse position //return true; return(obj.isMouseOver()); }
// Use this for initialization void Start() { GameObject temp; temp = GameObject.Find("Start"); //Debug.Log("Start: " + temp.GetComponent<Transform>().position); start = temp.GetComponent <PuppetStringCollider>(); temp = GameObject.Find("Goal"); //Debug.Log("Goal: " + temp.GetComponent<Transform>().position); goal = temp.GetComponent <PuppetStringCollider>(); }