public void SetNowButtonState(int State) { NowButtonState = State; EZGUI_RadioButton.SetState(State); if (State == (int)UIButton.CONTROL_STATE.DISABLED) { SetcontrolIsEnabled(false); } else { SetcontrolIsEnabled(true); } }
public void OpenMaker(Construction construction) { // string constructionCode = CharSerializer.Encode(construction); // this.transform.localScale = Vector3.one; this.gameObject.SetActive(true); // _dragButtons.ForEach((obj) => obj.SetCamera(_makerCamera)); BackgroundInputCatcher.Catcher.RequestInputOverride(HandleBackgroundScreenPoint); targetConstructions = new List <Construction>(); //Construction.Decode(constructionCode) targetConstructions.Add(Construction.DecodeCopy(construction)); targetConstructions[0].transform.parent = _constructionHolder.transform; targetConstructions[0].transform.localPosition = Vector3.zero; // construction.gameObject.SetLayerRecursively(gameObject.layer); _defaultControlModeButton.SetState(0); ChangeControlMode(ControlMode.DragAndRotate); MarkConstructionChange(); }