void OnMouseUp() { if (transform.parent.parent.parent.GetChild(0).GetChild(0).GetComponent <RidgeControl>()) { this.transform.parent.parent.parent.GetChild(0).GetChild(0).GetComponent <RidgeControl>().ridgemanage[0].GetComponent <catline>().ResetCatmullRom(); } this.transform.parent.GetComponent <ColumnControl>().columnmanage[0].GetComponent <catline>().ResetCatmullRom(); columncontrol.reset(); if (ridgecontrol) { ridgecontrol.reset(); eavecontrol.reset(); roofcontrol.withoutinireset(); roofcontrol2.reset(); roofcontrolS.reset(); } bc.reset(); fc.reset(); if (pt) { pt.reset(); } if (rtc) { rtc.reset(); } }
public void setnumberslidervalue() { //numberslidervalue = (int)numberslider.value; if (transform.parent.GetChild(0).GetChild(0).GetChild(0).GetComponent <catline>()) { transform.parent.GetChild(0).GetChild(0).GetChild(0).GetComponent <catline>().ResetCatmullRom(); } if (transform.parent.GetChild(0).childCount > 2) { transform.parent.GetChild(0).GetChild(1).GetChild(0).GetComponent <catline>().ResetCatmullRom(); //print("dgdgdfgdfgdgdfg "+transform.parent.GetChild(0).GetChild(1).GetChild(0).name); } if (ridgecontrol) { ridgecontrol.reset(); //print("~~~~~~~~bababababa~~~~~~~~~ " + (center.transform.position.x - transform.parent.GetChild(0).GetChild(0).GetChild(0).GetChild(0).transform.position.x)); if (Mathf.Abs(center.transform.position.x - transform.parent.GetChild(0).GetChild(0).GetChild(0).GetChild(0).transform.position.x) > 1) { upridge = true; } else { // upridge = false; upridge = true; } if (upridge == true) { up.reset(); } if (rtc) { rtc.reset(); } eavecontrol.reset(); roofcontrol1.reset(); roofcontrol2.reset(); roofcontrolS.reset(); } settwvalue(); }
void OnMouseUp() { this.transform.parent.GetComponent <RidgeControl>().ridgemanage[0].GetComponent <catline>().ResetCatmullRom(); ridgecontrol.reset(); eavecontrol.reset(); roofcontrol.reset(); roofcontrol2.reset(); roofcontrolS.reset(); rtc.reset(); }
public void setnumberslidervalue() { numberslidervalue = (int)numberslider.value; ridgecontrol.reset(); if (upridge == true) { up.reset(); } rtc.reset(); columncontrol.reset(); eavecontrol.reset(); roofcontrol.reset(); roofcontrol2.reset(); roofcontrolS.reset(); /* * bc.reset(); * fc.reset(); * plat.reset(); */ }
void OnMouseUp() { eavecontrol.r2p = eavecontrol.eavemanage[0].transform.GetChild(1).transform.position; eavecontrol.r3p = eavecontrol.eavemanage[0].transform.GetChild(2).transform.position; eavecontrol.r4p = eavecontrol.eavemanage[0].transform.GetChild(3).transform.position; eavecontrol.r5p = eavecontrol.eavemanage[0].transform.GetChild(4).transform.position; eavecontrol.r6p = eavecontrol.eavemanage[0].transform.GetChild(5).transform.position; roofcontrol.r2p = roofcontrol.roofsurfacemanage[0].transform.GetChild(1).transform.position; this.transform.parent.parent.parent.GetChild(0).GetChild(0).GetComponent <RidgeControl>().ridgemanage[0].GetComponent <catline>().ResetCatmullRom(); this.transform.parent.GetComponent <ColumnControl>().columnmanage[0].GetComponent <catline>().ResetCatmullRom(); ridgecontrol.reset(); columncontrol.reset(); eavecontrol.withoutinireset(); roofcontrol.withoutinireset(); roofcontrol2.reset(); roofcontrolS.reset(); fc.reset(); rtc.reset(); }
void OnMouseUp() { this.transform.parent.GetComponent <RidgetailControl>().ridgetailmanage[0].GetComponent <catline>().ResetCatmullRom(); rtc.reset(); }