Пример #1
0
 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;
         }
     }
 }
Пример #2
0
 private void DestroyConstantButtons()
 {
     RectTransform[] transforms = ContentConstants.GetComponentsInChildren <RectTransform>();
     if (transforms != null)
     {
         foreach (RectTransform o in transforms)
         {
             if (o.gameObject.tag != "Persistent")
             {
                 Destroy(o.gameObject);
             }
         }
     }
 }
Пример #3
0
    private void OnGUI()
    {
        StyleConstants.Init();
        ContentConstants.Init();

        DrawToolbar();
        DrawTODOList();
        DrawResizeArea();
        DrawDetail();

        if (selectChanged)
        {
            selectChanged = false;
            needRepaint   = true;
        }
    }