public void DisableShapesUI() { if (DownButton.activeSelf) { UI_Shape.SetActive(false); } }
public void DoneButton() { if (flag == 0) { if (shape == null) { //parent.SetActive (true); shape = parent.transform.Find(Out.text).gameObject; shape.SetActive(true); UI_Shape = Body.transform.Find(Out.text).gameObject; UI_Shape.SetActive(true); } else { shape.SetActive(false); UI_Shape.SetActive(false); //Reload (); shape = parent.transform.Find(Out.text).gameObject; shape.SetActive(true); UI_Shape = Body.transform.Find(Out.text).gameObject; UI_Shape.SetActive(true); } } flag = 0; }
public void AddAnotherSolid() { shape = parent.transform.Find(Out.text).gameObject; shape.SetActive(false); UI_Shape = Body.transform.Find(Out.text).gameObject; UI_Shape.SetActive(false); shape = null; Out.text = "0"; flag = 1; }
//void start() ////{ // CubeUI = Body.transform.Find ("CubeUI").gameObject; //} public void DoneButton() { if (!parent.active) { parent.SetActive(true); shape = parent.transform.Find(Out.text).gameObject; shape.SetActive(true); UI_Shape = Body.transform.Find(Out.text).gameObject; UI_Shape.SetActive(true); } else { shape.SetActive(false); UI_Shape.SetActive(false); //Reload (); shape = parent.transform.Find(Out.text).gameObject; shape.SetActive(true); UI_Shape = Body.transform.Find(Out.text).gameObject; UI_Shape.SetActive(true); } }
IEnumerator wait() { yield return(new WaitForSeconds(1)); UI_Shape.SetActive(true); }