Пример #1
0
    public Blueprint CreateNewBlueprint(BlueprintGroup g)
    {
        var c = BlueprintModelAsset.Create <Blueprint> (Component);

        c.rect = new Rect(100, 100, 128, 128);
        if (HotBP != null)
        {
            c.rect.x = HotBP.rect.x + HotBP.rect.width + 50;
            c.rect.y = HotBP.rect.y + 50;
        }
        Component.blueprints.Add(c);
        c.group      = g;
        ActiveGroup  = g;
        HotBP        = c;
        focusControl = "blueprintID";
        Component.SetDirty();
        return(c);
    }
Пример #2
0
 public void Delete(BlueprintGroup g)
 {
     removedGroups.Add(g);
 }
Пример #3
0
 public BlueprintGroupController(BlueprintGroup group)
 {
 }