private void OnProjectParameterRemoved(object sender, ProjectParameterEventArgs args) { ProjectParameterButton[] btns = ContentConstants.GetComponentsInChildren <ProjectParameterButton>(); if (btns != null) { foreach (ProjectParameterButton btn in btns.Where(o => o.Id == args.ProjectParameter.Id)) { Destroy(btn.gameObject); return; } } }
private void DestroyConstantButtons() { RectTransform[] transforms = ContentConstants.GetComponentsInChildren <RectTransform>(); if (transforms != null) { foreach (RectTransform o in transforms) { if (o.gameObject.tag != "Persistent") { Destroy(o.gameObject); } } } }
private void OnGUI() { StyleConstants.Init(); ContentConstants.Init(); DrawToolbar(); DrawTODOList(); DrawResizeArea(); DrawDetail(); if (selectChanged) { selectChanged = false; needRepaint = true; } }