public static GGrassPrototypeGroup Create(DetailPrototype[] detailPrototypes) { GGrassPrototypeGroup group = CreateInstance <GGrassPrototypeGroup>(); for (int i = 0; i < detailPrototypes.Length; ++i) { group.Prototypes.Add((GGrassPrototype)detailPrototypes[i]); } return(group); }
public static GGrassPrototypeGroupInspectorDrawer Create(GGrassPrototypeGroup group) { return(new GGrassPrototypeGroupInspectorDrawer(group)); }
public GGrassPrototypeGroupInspectorDrawer(GGrassPrototypeGroup group) { instance = group; }
private void OnEnable() { instance = target as GGrassPrototypeGroup; }